i cantnot create object with
phpQuery::newDocumentFileXHTML($template) or
phpQuery::newDocumentXHTML($template)
if the content have been the character "&"
the code:
<?php
require('lib/phpQuery/phpQuery/phpQuery.php');
echo "<pre>";
$template1 = "<a href='?a=5&b=6'>ss&66</a>";
$a = phpQuery::newDocumentXHTML($template1);
?>
the error:
Fatal error: Uncaught exception 'Exception' with message 'Error loading
XML markup' in
F:\Install\xampp\htdocs\cms\lib\phpQuery\phpQuery\phpQuery\DOMDocumentWrapper.ph
p:296
Stack trace:
#0
F:\Install\xampp\htdocs\cms\lib\phpQuery\phpQuery\phpQuery\DOMDocumentWrapper.ph
p(522):
DOMDocumentWrapper->loadMarkupXML('<?xml version="...')
#1
F:\Install\xampp\htdocs\cms\lib\phpQuery\phpQuery\phpQuery\DOMDocumentWrapper.ph
p(255):
DOMDocumentWrapper->documentFragmentLoadMarkup(Object(DOMDocumentWrapper),
'UTF-8', '???<div id="men...')
#2
F:\Install\xampp\htdocs\cms\lib\phpQuery\phpQuery\phpQuery\DOMDocumentWrapper.ph
p(95):
DOMDocumentWrapper->loadMarkupXML('???<div id="men...', NULL)
#3
F:\Install\xampp\htdocs\cms\lib\phpQuery\phpQuery\phpQuery\DOMDocumentWrapper.ph
p(63):
DOMDocumentWrapper->loadMarkup('???<div id="men...')
#4
F:\Install\xampp\htdocs\cms\lib\phpQuery\phpQuery\phpQuery\DOMDocumentWrapper.ph
p(49):
DOMDocumentWrapper->load('???<div id="men...', 'application/xht...', NULL)
#5 F:\Install\xampp\htdocs\cms\lib\phpQuery\php in
F:\Install\xampp\htdocs\cms\lib\phpQuery\phpQuery\phpQuery\DOMDocumentWrapper.ph
p
on line 296
Original issue reported on code.google.com by TaoThanh...@gmail.com on 20 Dec 2009 at 2:41
Original issue reported on code.google.com by
TaoThanh...@gmail.com
on 20 Dec 2009 at 2:41