cms:out escapeXml="false": prevent <br> in multi line input
Using cms:out escapeXml="false"
in a Magnolia jsp, outputs a <br>
anywhere, where a line break is in the input string.
In the jsp, the code is:
<cms:out nodeDataName="plain开发者_StackOverflowHtml" escapeXml="false" />
plainHtml
is set with a controlType
: edit
, type
: String
.
Is it possible to prevent the output of <br>
anywhere, where a line break is in the input string?
Thanks for your help.
There is a "lineBreak" parameter that you can set to any string you like. See Magnolia taglib documentation for more information.
精彩评论