def remove_html(string):
regex = re.compile(r'<[^>]+>')
return regex.sub('', string)
本文标题: | pythonの清除HTML元素代码@vulsee.com |
本文链接: (转载请附上本文链接) | https://vulsee.com/archives/vulsee_2022/0714_16562.html |
def remove_html(string):
regex = re.compile(r'<[^>]+>')
return regex.sub('', string)
本文标题: | pythonの清除HTML元素代码@vulsee.com |
本文链接: (转载请附上本文链接) | https://vulsee.com/archives/vulsee_2022/0714_16562.html |