问题
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="plainHtml" 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.
回答1:
There is a "lineBreak" parameter that you can set to any string you like. See Magnolia taglib documentation for more information.
来源:https://stackoverflow.com/questions/4146432/cmsout-escapexml-false-prevent-br-in-multi-line-input