Removing HTML tags

Programming January 16th, 2012

The code snippet below is a function in python for removing html tags from a text. It can be used from a python terminal as shown in the image or within a python module.

Usage:

1) Remove ‘a’ tags: Type the commands as shown in the image below in a python terminal

Removing HTML tags



Leave a Comment