esc
moderatorim.ui.esc
Section titled “moderatorim.ui.esc”esc(value)HTML-escape value for safe text/attribute rendering.
:class:Raw passes through unchanged. Any object implementing the __html__ protocol
(e.g. a :class:~moderatorim.ui.component.Component) is rendered via that method and
treated as already-safe — this is what lets components compose as children without importing
each other. Everything else is HTML-escaped.