Jump to >

djblets.util.html

HTML-related utilities.

mark_safe_lazy(*args, **kw)[source]

Lazily mark text as safe.

This is useful if you need a lazily-translated string (such as with ugettext_lazy()) to be marked safe.

Parameters:text (six.text_type) – The text to mark safe.
Returns:A promise representing the safe text.
Return type:django.utils.functional.Promise