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.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/lib_phpQuery.php b/lib/lib_phpQuery.php
index 708b7a3df..4aefb70fe 100644
--- a/lib/lib_phpQuery.php
+++ b/lib/lib_phpQuery.php
@@ -514,7 +514,7 @@ class DOMDocumentWrapper {
.($xhtml ? '/' : '')
.'>';
if (strpos($html, '<head') === false) {
- if (strpos($hltml, '<html') === false) {
+ if (strpos($html, '<html') === false) {
return $meta.$html;
} else {
return preg_replace(
@@ -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 = '';