MozSecureWorld FAQ: Difference between revisions

Line 33: Line 33:


Problem: After using bleach, the safe tags show up "&lt;b&gt;should be bolded&lt;/b&gt;" instead of being rendered as <b>should be bolded</b>, you have to add a "|safe" to the template.html:  
Problem: After using bleach, the safe tags show up "&lt;b&gt;should be bolded&lt;/b&gt;" instead of being rendered as <b>should be bolded</b>, you have to add a "|safe" to the template.html:  
:(
Hello?
<pre>{{richtext.comment|safe}}
<pre>{{richtext.comment|safe}}
</pre>
</pre>
67

edits