【jsp】form标签中的htmlEscape 属性

<form:textarea path="remarks" htmlEscape="false" class="input-xlarge"/>

1、htmlEscape="false" , 输入内容 "<" ;

<

2、htmlEscape="true" , 输入内容 "<" ;(去掉这个属性一样。默认值是true)

&lt;

总结:
1、htmlEscape 属性的作用:是否转义字符, 默认为 true 。
2、转义字符为: < 、 > 、 " 、 &

posted @ 2022-05-20 15:32  ICE-CREAMMM  阅读(523)  评论(0编辑  收藏  举报