Jump to >

This documentation covers Djblets 2.0. You can see the latest Djblets documentation or all other versions.

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