Old description:
> The docs for `format_html` mention that `args` and `kwargs` are escaped
> but it does not say anything about `format_string` (which is, in fact,
> not escaped). Readers could benefit from this clarification to avoid
> putting unsafe content in `format_string`.
New description:
The docs for `format_html` mention that `args` and `kwargs` are escaped
but it does not say anything about `format_string` (which is, in fact, not
escaped). Readers could benefit from this clarification to avoid putting
unsafe content in `format_string`.
Similarly, the docs could be extended to explicitly mention that the
result is marked as safe. Mariusz suggested this text (thanks!):
{{{
The output has :func:`~django.utils.safestring.mark_safe` applied.
}}}
--
--
Ticket URL: <https://code.djangoproject.com/ticket/34595#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.