On Mon, Jul 30, 2012 at 3:56 PM, Bill Seitz <flux...@gmail.com> wrote:
> Here's what I've done: > * installed python-markdown in my environment > * included 'safemarkdown': utils.safemarkdown in my globals passed to > render() in my app code > * called like $safemarkdown(note.description) in my template which is > rendering a list of notes > > Unfortunately when I view that page output, I get visible/escaped tags > like <p> in the content. > > What am I doing wrong? > You probably want to call $:safemarkdown(note.description) - note the colon after the $ - this outputs the result of the expression without escaping it (a second time). Michael Michael Diamond dimo...@gmail.com www.DigitalGemstones.com -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to webpy@googlegroups.com. To unsubscribe from this group, send email to webpy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.