`

struts2 ognl 正则去html标签字符串截取

阅读更多
 <s:property value="#con.body.replaceAll('<[^>]*>','').replaceAll(#con_title,'').substring(0,100)+'...'" escape="false"/>

      去html标签并去掉第一个与#con_title重复的内容,然后截取前100

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics