4.11.1.2. sphinx.builders.qthelp.htmlescape

sphinx.builders.qthelp.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.