File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -71,12 +71,10 @@ or as base classes.
7171 content: if ``False `` (the default) they are emitted as a pair of start/end
7272 tags, if set to ``True `` they are emitted as a single self-closed tag.
7373
74- .. warning ::
75- :class: `!XMLGenerator ` does not validate element or
76- attribute names. Callers must ensure that names passed to APIs conform
77- to `XML name rules <https://www.w3.org/TR/xml/#NT-Name >`__ if passing
78- untrusted input. Character data and attribute values are escaped,
79- but not validated.
74+ .. note ::
75+ :class: `!XMLGenerator ` is only intended to be used as a ``handler ``
76+ with SAX parser functions from the :mod: `!xml.sax ` module. Using XMLGenerator
77+ on untrusted user inputs is not the intended use.
8078
8179 .. versionchanged :: 3.2
8280 Added the *short_empty_elements * parameter.
You can’t perform that action at this time.
0 commit comments