HTML markup validation problem...

learning_brain

New Member
Messages
206
Reaction score
1
Points
0

lemon-tree

x10 Minion
Community Support
Messages
1,420
Reaction score
46
Points
48
Read this that it links you to, it tells you specifically that URLs should be escaped to ensure mistakes are not made in interpretation. So, basically just change the & symbols to & and those errors should be resolved.
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
Note that & in an href attribute will be converted to a literal ampersand by the browser when the link is clicked (or when a JavaScript GET request is made), so you won't be changing the link by using &. (If, on the other hand, you URL-enocde the ampersand, it will remain escaped until it gets to the server. The fine art of multi-level escapes sent more than a few developers to the asylum back in the frameset days :) )
 

learning_brain

New Member
Messages
206
Reaction score
1
Points
0
Perfect - many thanks

I had a section in there generating the links which I've corrected...

PHP:
    $queryString_fulltext_images = "&" . htmlentities(implode("&", $newParams));
  }
}
$queryString_fulltext_images = sprintf("&totalResults=%d%s", $totalResults, $queryString_fulltext_images);

Job done - 100% valid!

Thanks all!
 
Top