cms:out escapeXml ="false":防止< br>在多行输入中 [英] cms:out escapeXml="false": prevent <br> in multi line input
问题描述
在木兰jsp中使用cms:out escapeXml="false"
,在输入字符串中有换行符的任何地方输出<br>
.
Using cms:out escapeXml="false"
in a Magnolia jsp, outputs a <br>
anywhere, where a line break is in the input string.
在jsp中,代码为:
<cms:out nodeDataName="plainHtml" escapeXml="false" />
plainHtml
用controlType
:edit
,type
:String
设置.
In the jsp, the code is:
<cms:out nodeDataName="plainHtml" escapeXml="false" />
plainHtml
is set with a controlType
: edit
, type
: String
.
是否可以防止在输入字符串中出现换行的任何地方输出<br>
?
Is it possible to prevent the output of <br>
anywhere, where a line break is in the input string?
感谢您的帮助.
推荐答案
有一个"lineBreak"参数,您可以将其设置为所需的任何字符串.参见
There is a "lineBreak" parameter that you can set to any string you like. See Magnolia taglib documentation for more information.
这篇关于cms:out escapeXml ="false":防止< br>在多行输入中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!