cms:out escapeXml ="false":防止< br>在多行输入中 [英] cms:out escapeXml="false": prevent <br> in multi line input

查看:93
本文介绍了cms:out escapeXml ="false":防止< br>在多行输入中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在木兰jsp中使用cms:out escapeXml="false",在输入字符串中有换行符的任何地方输出<br>.

Using cms:out escapeXml="false" in a Magnolia jsp, outputs a <br> anywhere, where a line break is in the input string.

在jsp中,代码为:
<cms:out nodeDataName="plainHtml" escapeXml="false" />
plainHtmlcontrolType:edittype:String设置.

In the jsp, the code is:
<cms:out nodeDataName="plainHtml" escapeXml="false" />
plainHtml is set with a controlType: edit, type: String.

是否可以防止在输入字符串中出现换行的任何地方输出<br>?

Is it possible to prevent the output of <br> anywhere, where a line break is in the input string?

感谢您的帮助.

推荐答案

有一个"lineBreak"参数,您可以将其设置为所需的任何字符串.参见

There is a "lineBreak" parameter that you can set to any string you like. See Magnolia taglib documentation for more information.

这篇关于cms:out escapeXml ="false":防止&lt; br&gt;在多行输入中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆