【发布时间】:2011-12-13 10:55:51
【问题描述】:
我有一个这样的字符串:
<p><strong>Make sure you’re paying the right price for your household and trade services with pricing calculators from Australia’s largest online services marketplace, ServiceSeeking.com.au </strong></p>.
我想用<h:outputText escape="false"> 显示这个字符串的一部分(只是内容,没有HTML 标记)。我试过substring(),但我不知道html标签在哪里结束,所以我的表格坏了。我只想得到大约 100 个字符。我该怎么做?
【问题讨论】: