aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_phpQuery.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-08-25 21:40:39 +0200
committerGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2013-08-25 21:40:39 +0200
commit6981a24b9c41c577d9c47e7e53c094fbecbb6b38 (patch)
tree9a0d1eccd34752ff4d3767fd6d47d9687380965a /lib/lib_phpQuery.php
parent4cf9119a7dfd8b8a45344dff4d884a445dcb5a5a (diff)
More explicit UTF-8
More explicit UTF-8 in PDO MySQL, html_entity_decode, htmlentities, and htmlspecialchars (less important)
Diffstat (limited to 'lib/lib_phpQuery.php')
-rw-r--r--lib/lib_phpQuery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib_phpQuery.php b/lib/lib_phpQuery.php
index 33ed8a011..4aefb70fe 100644
--- a/lib/lib_phpQuery.php
+++ b/lib/lib_phpQuery.php
@@ -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 = '';