代码:
"""
@author: MR.N
@created: 2022/3/30 Wed.
@version: 1.0
"""
import io
import re
def filter_html_tags(text):
htmltags = ['div', 'ul', 'li', 'ol', 'p', 'span', 'form', 'br',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
'hr', 'input',
'title', 'table', 'tbody', 'a',
'i', 'strong', 'b', 'big', 'small', 'u', 's', 'strike',
'img', 'center', 'dl', 'dt', 'font', 'em',
'code', 'pre', 'link', 'meta', 'iframe', 'ins']
# blocktags = ['script', 'style']
tabletags = [