How To Escape HTML For Blog Posts - Django Blog #11

preview_player
Показать описание
How to Escape out HTML on a blog post. By default, Django won't let HMTL appear on your blog post. We can make a quick change to our code though, that allows HTML to be used on a post page.

We'll use the safe filter in Django to escape out HTML characters in our blog post. You should only do this if you trust whoever is making blog posts! (hackers may be able to hack your site otherwise).
Рекомендации по теме
Комментарии
Автор

Is there a way to automate all the formatting, instead of needing to adding the html tags in every post? It seems a bit repetitive if you have tons of blog posts on your site, and need to change the overall formatting.

xsuperman
Автор

Sir please make a video regarding how to pass category list in dropdown menu of navbar in base template

RamanKumar-uokf
visit shbcf.ru