31ce04c655
Merge the beta-ready Yao Meta Skill architecture, report, evidence gate, and release-boundary updates.\n\nRelease boundary: beta/public testing is allowed; formal world-class, fully reviewed, or superiority claims remain blocked until the pending evidence gates are accepted.
15 lines
450 B
Python
15 lines
450 B
Python
#!/usr/bin/env python3
|
|
"""Shared HTML rendering helpers for static report generators."""
|
|
|
|
import html
|
|
from typing import Any
|
|
|
|
|
|
SCRIPT_INTERFACE = "internal-module"
|
|
SCRIPT_INTERFACE_REASON = "Used by report renderers to escape HTML while preserving meaningful falsey values."
|
|
|
|
|
|
def html_text(value: Any) -> str:
|
|
"""Escape text for HTML without dropping 0 or False values."""
|
|
return html.escape("" if value is None else str(value), quote=True)
|