[Fix Included] Plugin Output Fails W3 Validation
-
Hi Nick,
Thanks for an excellent plugin.
I’ve spotted a glitch, but also have the solution for you ??
In its current form, the output of the plugin fails W3 validation (W3 validator) due to the fact that “<” signs are inserted for some of the social networks like Facebook & Twitter.
Code example from quickshare.php at approx line 622:
<a href="https://facebook.com/sharer.php?u=<?php echo $url; ?>&t=<?php echo $title.'+<+'.$source; ?>"
The offending part is the: ‘+<+’ bit.
If you change the “<” between the two plusses to the html equivalent, it validates perfectly.
In this example, I’ve substituted the html code for a dash (–) instead of the “<“:
<a href="https://facebook.com/sharer.php?u=<?php echo $url; ?>&t=<?php echo $title.'+–+'.$source; ?>"
Hope that makes sense and helps you!
- The topic ‘[Fix Included] Plugin Output Fails W3 Validation’ is closed to new replies.