jinja2.runtime.soft_unicode

jinja2.runtime.soft_unicode(object) → string

Make a string unicode if it isn’t already. That way a markup string is not converted back to unicode.