开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜