[Tutor] regex problem

Alan Gauld alan.gauld at freenet.co.uk
Wed Jan 5 08:37:58 CET 2005


> This function removes HTML formatting codes from a text email 

Using regex to remove HTML is usually the wrong approach unless 
you can guarantee the format of the HTML in advance. The 
HTMLparser is usually better and simpler. I think theres an example
in the module doc of converting HTML to plain text.

HTH,

Alan G.



More information about the Tutor mailing list