![]() ![]() If your template tag needs to access the current context, you can use the Use of format_html() instead of mark_safe() is Mark_safe() if you are absolutely sure that yourĬode does not contain XSS vulnerabilities. If additional escaping is not desired, you will need to use Unlike other tag utilities, simple_tag passes its output throughĬonditional_escape() if the template context is inĪutoescape mode, to ensure correct HTML and protect you from XSS
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |