IViewEngine.render<P>(component: Component<P>,props: P): string | Promise<string>
Renders a view component with the given props to an HTML string.
Interpolations are escaped by the RENDERING RUNTIME — the JSX runtime and
the html tagged template both escape — and a component opts out with
hono's own raw(), never with engine-level configuration.
The escaping is therefore a property of how a component is WRITTEN, not a
guarantee this port makes. A plain (props) => string component is a
valid Component and its output is returned unchanged:
correct for a by-name engine whose compiled template has already escaped
its own interpolations, and an XSS hole for a hand-written template
literal such as (p) => `<p>${p.name}</p>` . Prefer JSX or the html
tag; reach for a plain string only when the producer already escaped.