how to remove <BR> using replace function?

localpricemaps at gmail.com localpricemaps at gmail.com
Thu Feb 9 00:24:01 EST 2006


i have some html that looks like this


<address style="color:#">34 main,<br> Boston, MA</address>

and i am trying to use the replace function to get rid of the <Br> that
i scrape out using this code:

for oText in incident.fetchText( oRE):
            strTitle += oText.strip()
            strTitle = string.replace(strTitle,'<br>','')

but it doesn't seem to remove the <br>

any ideas?




More information about the Python-list mailing list