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

大憨熊 提交于 2020-01-17 12:39:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!