Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Python Trim Html Tag

DZone's Guide to

Python Trim Html Tag

· ·
Free Resource
// description of your code here


def trim_tag(s):
    return re.compile('<[^>]+>',re.S|re.I).sub('',s)

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}