Clanbite

clanbite_esc_block_fragment_html( string $html ): string

Escape an HTML fragment built from block markup / helpers for safe storage or composition.

For final output in render.php, prefer clanbite_echo_block_fragment_html() so PHPCS recognizes escaping at the call site; use this function when you need a string (concatenation, tests, etc.).

Parameters

$html (string) Required

Assembled markup (balanced fragment recommended).

Returns

string

Defined in inc/clanbite-block-render-escape.php