Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
画像とテキストを含む html 文字列があります。レンダリング中、画像ではなくテキストのみをレンダリングしたい。
私はこれをやろうとしました:
<h:outputText escape="false" value="#{fn:replace(answerBlock.content,'<img>','')}" />
しかし、これは不正な形式の html を返し、それが画面に表示されました。
img タグをスキップして jsf でテキストをレンダリングするにはどうすればよいですか?