Escape user css in the dashboard. Should fix if brackets show up in the css code

This commit is contained in:
Jeremy Zhang 2017-08-09 06:58:28 +00:00
parent 26c0e7444f
commit b3d5a7e171

View File

@ -34,7 +34,7 @@ will have CSS cosmetic privilages removed, if caught. Please don't, we check the
<div class="col s12">
<p class="flow-text">Edit your CSS code here</p>
<div style="position: relative; height: 40vh;">
<div id="css_editor">{% if new %}/* Enter your CSS code here! */{% else %}{{ css.css }}{% endif %}</div>
<div id="css_editor">{% if new %}/* Enter your CSS code here! */{% else %}{{ css.css|e }}{% endif %}</div>
</div>
<br>
</div>