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。 –