This function does not properly escape/prepare text containing double quotes for editing in a standard input element of a form.
public static function prep($str, $double_encode = TRUE) { $str = (string) $str; if ($double_encode) { $s…
I came across this thread when looking into an issue with displaying double quotes in a normal input field. In the prep function, shouldn't the correct line be:
$str = htmlspecialchars($str, ENT_QUOTES, 'UTF-8', FALSE);
This will then correctly …