使用例
インラインタグの告知
入力
<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 & chips: €5. 🐟 <b> &lt;</p>Expected answer
Fish & chips: €5. 🐟 <b> <- テキスト抽出
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