很簡單的一句話:html
<s:if test="hzhenn.length()>60"><s:property value="hzhenn.replaceAll('<[^>]+>','').substring(0,87)"escape="false"/>htm
hzhenn.replaceAll('<[^>]+>','')不編譯html代碼,substring截取,escape是指是否編譯HTML代碼string