案例
行内发布公告
输入
<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 & chips: €5. 🐟 <b> &lt;</p>Expected answer
Fish & chips: €5. 🐟 <b> <- 文本 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