More explicit UTF-8

More explicit UTF-8 in PDO MySQL, html_entity_decode, htmlentities, and
htmlspecialchars (less important)
This commit is contained in:
Alexandre Alapetite
2013-08-25 21:40:39 +02:00
parent 4cf9119a7d
commit 6981a24b9c
6 changed files with 20 additions and 9 deletions

View File

@@ -3365,7 +3365,7 @@ class phpQueryObject
*/
public function text($text = null, $callback1 = null, $callback2 = null, $callback3 = null) {
if (isset($text))
return $this->html(htmlspecialchars($text));
return $this->html(htmlspecialchars($text), ENT_NOQUOTES, 'UTF-8');
$args = func_get_args();
$args = array_slice($args, 1);
$return = '';