MCPcopy Create free account
hub / github.com/datapane/datapane / html_quote

Function html_quote

python-client/src/datapane/_vendor/bottle.py:3097–3100  ·  view source on GitHub ↗

Escape and quote a string to be used as an HTTP attribute.

(string)

Source from the content-addressed store, hash-verified

3095
3096
3097def html_quote(string):
3098 """ Escape and quote a string to be used as an HTTP attribute."""
3099 return '"%s"' % html_escape(string).replace('\n', '
')\
3100 .replace('\r', '
').replace('\t', '	')
3101
3102
3103def yieldroutes(func):

Callers

nothing calls this directly

Calls 2

html_escapeFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected