Filter out HTML tags and resolve entities in python

前端 未结 8 1800
暗喜
暗喜 2020-12-03 00:11

Because regular expressions scare me, I\'m trying to find a way to remove all HTML tags and resolve HTML entities from a string in Python.

8条回答
  •  萌比男神i
    2020-12-03 00:37

    if you use django you might also use http://docs.djangoproject.com/en/dev/ref/templates/builtins/#striptags ;)

提交回复
热议问题