Strip HTML Tags

Remove all HTML tags from a string.

Code

General
import re
return re.sub(r'<[^>]*>', '', str)

Parameters

The string containing HTML tags to remove

Server

More Python Snippets