只需一步,快速开始
720
940
3116
管理员
html = '<abc>'
import HTMLParser html_parser = HTMLParser.HTMLParser() txt = html_parser.unescape(html) #这样就得到了txt = '<abc>'
import cgi html = cgi.escape(txt) # 这样又回到了 html = '<abc>'
使用道具 举报
本版积分规则 发表回复 回帖后跳转到最后一页
|Archiver|手机版|小黑屋|21番茄网 ( 粤ICP备10099428号 ) 奇远富
GMT+8, 2025-2-23 00:52 , Processed in 4.352226 second(s), 35 queries .
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.