HEX
Server: Apache
System: Linux 4485441ca2e2 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 11:03:07 UTC 2025 aarch64
User: (1000)
PHP: 8.2.24
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/flamingo/includes/formatting.php
<?php

function flamingo_htmlize( $val ) {
	if ( is_array( $val ) ) {
		$result = '';

		foreach ( $val as $v )
			$result .= '<li>' . flamingo_htmlize( $v ) . '</li>';

		return '<ul>' . $result . '</ul>';
	}

	return wpautop( esc_html( (string) $val ) );
}

function flamingo_csv_row( $inputs = array() ) {
	$row = array();

	foreach ( $inputs as $input ) {
		$input = preg_replace( '/(?<!\r)\n/', "\r\n", $input );
		$input = esc_sql( $input );
		$input = sprintf( '"%s"', $input );
		$row[] = $input;
	}

	return implode( ',', $row );
}

?>