0
我有DocumentVariable
(含blob数据的Struts Bean变量),其中包含数据和Html标记。如何删除html标签并仅显示文本。如何从Jsp中的Blob中删除Html标记
<s:label name="documentDAO.documentAllContent" />
<p>/*<br /> * This is a JavaScript Scratchpad.<br /> *<br /> * Enter some JavaScript, then Right Click or choose from the Execute Menu:<br /> * 1. Run to evaluate the selected text (Ctrl+R),<br /> * 2. Inspect to bring up an Object Inspector on the result (Ctrl+I), or,<br /> * 3. Display to insert the result in a comment after the selection. (Ctrl+L)<br /> */</p> <p> </p>
为什么你使用''标签在动作类中使用HTML解析器?使用'' - 它默认转义html。 –
我正在使用CKEditor的数据,即使我正在使用我正在使用标签获取数据。
sfhsdfhsdf
sfdhsfdhsfdhsfdhsdfh
hgdf
–你想逃避它们吗?如果不是,则将'escapeHtml'属性设置为false。 –