jinja2.runtime.Markup.escape

classmethod Markup.escape(s)[source]

Escape the string. Works like escape() with the difference that for subclasses of Markup this function would return the correct subclass.