tags:

views:

29

answers:

2

I setup the default wmd.js to my admin textareas for my Bug models. Now it gets saved as HTML and when I go to edit the entry in the admin, I see the literal html:

<p>foo</p>

What strategy could I use so it only renders this <p>foo</p> in the views/html instead of the edit view?

A: 

Seems what I had to do was make the markdown save as "Markdown" type, and use the markdown django module to keep a second column of my textarea ( the pure one ).

meder
A: 

You need to mark the output as safe so it doesn't get autoescaped. See the autoescaping docs.

Daniel Roseman