ITeye博客

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

cy913417 · 2012-09-12 09:54 · Struts2 · Web前端 · Markdown

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

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。