use beatifulsoup a one stop shop for html mangling
http://www.crummy.com/software/BeautifulSoup/

or try this:

XML(str(TAG(elements[9]))

mic

2013/2/18 Bruno Rocha <rochacbr...@gmail.com>:
>
>
> http://stackoverflow.com/questions/9662346/python-code-to-remove-html-tags-from-a-string
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to