For more details: http://web2py.com/books/default/chapter/29/05#Parsing. Note, it requires well-formed HTML -- if you don't have that, you might need something more sophisticated, like Beautiful Soup<http://www.crummy.com/software/BeautifulSoup/> .
Anthony On Sunday, June 30, 2013 7:44:11 PM UTC-4, Alan Etkin wrote: > > ok, i have a bunch of string based html stored in standard ascii text >> file. how do i convert that string html into standard web2py html helper >> objects? thanx in advance, lucas > > > with open(<source>) as myfile: > tag = TAG(myfile.read()) > > Every element defined in the source will map to a generic helper built > with the TAG factory, but you could re-build the tree reading each > element's tag in a loop. > > -- --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

