开发者

cms:out escapeXml="false": prevent <br> in multi line input

开发者 https://www.devze.com 2023-01-24 15:40 出处:网络
Using cms:out escapeXml=\"false\" in a Magnolia jsp, outputs a <br> anywhere, where a line break is in the input string.

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

精彩评论

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