Files
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

18 lines
355 B
PHP

<?php
function flamingo_htmlize( $val ) {
$result = '';
if ( is_array( $val ) ) {
foreach ( $val as $v ) {
$result .= sprintf( '<li>%s</li>', flamingo_htmlize( $v ) );
}
$result = sprintf( '<ul>%s</ul>', $result );
} else {
$result = wpautop( esc_html( (string) $val ) );
}
return apply_filters( 'flamingo_htmlize', $result, $val );
}