HTMLタグを削除

段落と文字参照を保ち、スクリプトやスタイルを除いたテキストを抽出するか、タグのみを削除します。HTMLの安全化処理ではありません。

入力: テキスト結果: テキスト

テキスト入力

使用例

インラインタグの告知

入力

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

Expected answer

Deploy v2.4 to staging.
テキスト抽出
Readable text
段落の境界を保持

入力

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

Expected answer

Backup complete.

Deploy ready.
テキスト抽出
Readable text
文字参照を一度だけ復号

入力

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

Expected answer

Fish & chips: €5. 🐟 <b> &lt;
テキスト抽出
Readable text
スクリプトとスタイルを除外

入力

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

Expected answer

Before

After
テキスト抽出
Readable text
コードの字下げを保持

入力

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

Expected answer

Example:

if ready:
    deploy()
    notify()
テキスト抽出
Readable text

関連ツール

コード整形

操作の参考資料

元の技術文書を見る (English)