MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / html_escape

Function html_escape

thirdparty/bottle/bottle.py:3489–3492  ·  view source on GitHub ↗

Escape HTML special characters ``&<>`` and quotes ``'"``.

(string)

Source from the content-addressed store, hash-verified

3487
3488
3489def html_escape(string):
3490 """ Escape HTML special characters ``&<>`` and quotes ``'"``. """
3491 return string.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')\
3492 .replace('"', '&quot;').replace("'", '&#039;')
3493
3494
3495def html_quote(string):

Callers 2

wsgiMethod · 0.85
html_quoteFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…