Add escape_textarea for backwards compatibility

This commit is contained in:
FusionPBX
2025-06-21 11:51:19 -06:00
committed by GitHub
parent a818c43915
commit 04913d61a0

View File

@@ -2044,6 +2044,17 @@
return false;
}
/**
* Escape the user data for a textarea
* <p>Escapes & " ' < and > characters</p>
* @param string $string the value to escape
* @return string
* @link https://www.php.net/htmlspecialchars
*/
function escape_textarea($string) {
return htmlspecialchars($string, ENT_QUOTES, 'UTF-8');
}
//output pre-formatted array keys and values
if (!function_exists('view_array')) {