I've no idea about the proper way...
To put a mixture of markdown, tags, and python code into your DB,  try
something like this:

Controller:
    import gluon.contrib.markdown.markdown2 as md
    import StringIO
    <get row from your DB>
    show_this=response.render(StringIO.StringIO(md.markdown
(row.field_with_html)))
    return dict(show_this=show_this)

View:
    {{=XML(show_this,sanitize=False)}}

It is, no doubt, very unsecure and unrecommended :-)

Best wishes,
David

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to