escape

Function defined in jinja2._markupsafe._native

escape(s)

Convert the characters &, <, >, ‘ and ” in string s to HTML-safe sequences. Use this if you need to display text that might contain such characters in HTML. Marks return value as markup string.

Previous topic

soft_unicode

Next topic

escape_silent