textoutpc.misc
– Miscellaneous utilities#
- textoutpc.misc.html_escape(text: str, /) str #
Escape HTML entities in the given text.
- Parameters:
text – Text to escape.
- Returns:
Text with escaped HTML entities.
- textoutpc.misc.html_start_tag(name: str, /, *, cls: str | Sequence[str] | None = None, **kwargs: str | None) str #
Get an HTML start tag.
- Parameters:
name – Name of the start tag.
cls – CSS classes for the tag.
- Returns:
Rendered start tag.