微慑信息网

pythonの清除HTML元素代码@vulsee.com

 

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
转载请附本站链接,未经允许不得转载,,谢谢:微慑信息网-VulSee.com » pythonの清除HTML元素代码@vulsee.com
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

微慑信息网 专注工匠精神

访问我们联系我们