gws.lib.xmlx.util
¶
Source code: gws.lib.xmlx.util
Module Contents¶
- gws.lib.xmlx.util.atom_to_string(s) tuple[str, bool] ¶
Return a string representation of a primitive value.
- Returns:
A tuple containing the string representation and a boolean indicating if the conversion was successful.
- gws.lib.xmlx.util.escape_attribute(s: str) str ¶
Escape special characters in a string for XML attributes.
- gws.lib.xmlx.util.escape_text(s: str) str ¶
Escape special characters in a string for XML.