{
    "mode": "pydoc",
    "parameter": "genshi",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/pydoc/genshi/json",
    "generated": "2026-06-02T17:56:24Z",
    "sections": {
        "NAME": {
            "content": "genshi\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This package provides various means for generating and processing web markup\n(XML or HTML).\n\nThe design is centered around the concept of streams of markup events (similar\nin concept to SAX parsing events) which can be processed in a uniform manner\nindependently of where or how they are produced.\n",
            "subsections": []
        },
        "PACKAGE CONTENTS": {
            "content": "speedups\nbuilder\ncompat\ncore\nfilters (package)\ninput\noutput\npath\ntemplate (package)\ntests (package)\nutil\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "escape",
                    "content": "Create a Markup instance from a string and escape special characters\nit may contain (<, >, & and \").\n\n>>> escape('\"1 < 2\"')\n<Markup u'&#34;1 &lt; 2&#34;'>\n\nIf the `quotes` parameter is set to `False`, the \" character is left\nas is. Escaping quotes is generally only required for strings that are\nto be used in attribute values.\n\n>>> escape('\"1 < 2\"', quotes=False)\n<Markup u'\"1 &lt; 2\"'>\n\n:param text: the text to escape\n:param quotes: if ``True``, double quote characters are escaped in\naddition to the other special characters\n:return: the escaped `Markup` string\n:rtype: `Markup`\n"
                }
            ]
        },
        "DATA": {
            "content": "docformat = 'restructuredtext en'\n",
            "subsections": []
        },
        "VERSION": {
            "content": "0.7.6\n",
            "subsections": []
        },
        "FILE": {
            "content": "/usr/lib/python3/dist-packages/genshi/init.py\n\n",
            "subsections": []
        }
    },
    "summary": "genshi",
    "flags": [],
    "examples": [],
    "see_also": []
}