html = TAG('<a>xxx</a><b>yyy</b>')
for item in html.components: print itemfrom gluon.html import markdown_serializer print html.flatten(render=markdown_serializer) On Sep 4, 11:35 pm, weheh <[email protected]> wrote: > - How to get a list of all elements in an html string? > - How to specify my own render routine like markmin_serializer & > markdown_serializer? Where to put this code? Would it be "from modules > include my_serializer" and > my_html_string.flatten(render=my_serializer) ?

