How can I write a newline in a string in ColdFusion?

前端 未结 7 947
孤街浪徒
孤街浪徒 2021-02-03 20:58

Currently I\'m putting newlines in strings through one of these two methods:



        
相关标签:
7条回答
  • 2021-02-03 21:42

    i use this:

    <cfset br = "#chr(13)##chr(10)#">
    <cfset someStr="This is line 1#br#This is line 2#br#This is line 3" />
    
    0 讨论(0)
提交回复
热议问题