dhtmlparser3.quoter

This module provides ability to quote and unquote strings using backslash notation.

dhtmlparser3.quoter.escape(inp)[source]

Escape quote in string inp.

Example usage:

>>> escape('hello "')
'hello "'
Parameters

inp (str) – String in which quote will be escaped.

Returns

Escaped string.

Return type

str