You problem is parsing invalid HTML or an HTML with non-utf8 encoding. web2py is not the tool for that. Use beautiful soup to parse it and then serialize it back to valid HTML in utf8. Then you can use TAG(....).flatten(...)
On Dec 16, 2:45 pm, Vasile Ermicioi <elff...@gmail.com> wrote: > so what to do? > please give me an advice