2006-06-14, 11:21
i need a way to remove html tags from a string so i can put it into a normal textbox. is there any convenient python method to do this? or can it be done with a regex?
ive managed to build a regex that finds all "<>" tags in a text, but i want the opposite. "<.*?>" will find all tags, but how can i negate this?
any ideas how to remove the html tags from the below text?
ive managed to build a regex that finds all "<>" tags in a text, but i want the opposite. "<.*?>" will find all tags, but how can i negate this?
any ideas how to remove the html tags from the below text?
Quote:endorsements, such as the numerous commercials they've appeared in for <i>butterfinger</i> candy bars.<br>
<br>
<b>fox broadcasting schedule (all times eastern)</b><br>
december 1989 - may 1990: sunday 8:00-8:30<br>
october 1990 - may 1994: thursday 8:00-8:30<br>