I think you want to use the replace method of the string instance.
Something like this will work:

# See http://docs.python.org/lib/string-methods.html#l2h-196
txt = "an unfortunate <br> in the middle"
txt = txt.replace("<br>", "")

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to