7.1.1.3. sphinx.websupport.htmlescape

sphinx.websupport.htmlescape(s, quote=None)

Replace special characters “&”, “<” and “>” to HTML-safe sequences. If the optional flag quote is true, the quotation mark character (”) is also translated.