from lxml.html.clean import clean_html print clean_html(html) 过滤富文本 转载于:https://www.cnblogs.com/ermei/p/10375128.html