I'm in the process of copying markdown_serializer to modules and modifying it to treat tags differently. I don't anticipate running into troubles importing from there and then callying my_serializer, do you?
On Sep 5, 6:51 pm, mdipierro <[email protected]> wrote: > html = TAG('<a>xxx</a><b>yyy</b>') > for item in html.components: print item > > from 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) ?

