有没有人知道在Python中使用HTML实体代码(例如< &)将字符串转换为普通字符串(例如<&)的简单方法?
<
&
cgi.escape()将逃脱字符串(很差),但没有unescape().
cgi.escape()
unescape()
html python beautifulsoup
beautifulsoup ×1
html ×1
python ×1