移除 HTML 標籤

將 HTML 轉為保留段落、解碼實體且排除腳本和樣式的文字;也可僅刪除標籤。此工具不供安全過濾 HTML。

輸入: 文本結果: 文本

文本輸入

範例

行內發布公告

輸入

<p>Deploy <strong>v2.4</strong> to <em>staging</em>.</p>

Expected answer

Deploy v2.4 to staging.
文本 extraction
Readable text
保留段落邊界

輸入

<p>Backup complete.</p><p>Deploy ready.</p>

Expected answer

Backup complete.

Deploy ready.
文本 extraction
Readable text
實體只解碼一次

輸入

<p>Fish &amp; chips: &euro;5. &#x1F41F; &lt;b&gt; &amp;lt;</p>

Expected answer

Fish & chips: €5. 🐟 <b> &lt;
文本 extraction
Readable text
排除腳本與樣式

輸入

<style>p{color:red}</style><p>Before</p><script>demo()</script><p>After</p>

Expected answer

Before

After
文本 extraction
Readable text
保留程式碼縮排

輸入

<p>Example:</p><pre>if ready:
    deploy()
    notify()</pre>

Expected answer

Example:

if ready:
    deploy()
    notify()
文本 extraction
Readable text

相关工具

程式碼整理

操作参考

查看原始技术文檔 (English)