Ran into a problem, so this thread is continued here: http://groups.google.com/group/web2py/browse_thread/thread/f4127cbb452f488b?hl=en#
On Sep 5, 10:16 pm, weheh <richard_gor...@verizon.net> wrote: > 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 <mdipie...@cs.depaul.edu> 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 <richard_gor...@verizon.net> 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) ?