문제

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?

도움이 되었습니까?

해결책 2

It seems I had to make the Markdown save as "Markdown" type, and use the markdown Django module to keep a second column of my textarea (the pure one).

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top