aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_phpQuery.php
diff options
context:
space:
mode:
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 = '';