greatpie / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

Using of & and/or & ? #79

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
From the Google Groups :
"Hello,

We know that we have to write our links using "&" to separate
params instead of "&".
That's OK.

But using phpQuery if I do
$phpQuery->append('<a href="?test1=val1&amp;test2=val2/>');
That's OK the link is correctly formated (so call "?
test1=val1&test2=val2").
Writing :
$phpQuery->attr('href','<a href="?test1=val1&amp;test2=val2/>');
The link is in error cause interpreting brute (so call "?
test1=val1&amp;test2=val2").

And so reverse.
$phpQuery->append('<a href="?test1=val1&test2=val2/>');
Create an XML loading error.
Writing :
$phpQuery->attr('href','<a href="?test1=val1&test2=val2/>');
OK.

How to have one and a unique way to do it ?
Using &amp; or &, but only one of us not both.

Thanks."

Original issue reported on code.google.com by nicolas....@gmail.com on 17 Nov 2008 at 4:04

GoogleCodeExporter commented 8 years ago
Please! HIGH PRIORITY

Original comment by bertolot...@gmail.com on 29 Dec 2014 at 12:49