• I have the following code for bookmarking a site in Yahoo Buzz. This works fine, except, it produces a validation error for the ampersand (&).

    Is it possible to recode the entire phrase to validate? BTW, I tried switching ‘&’ for ‘$amp;’…no luck.

    http://buzz.yahoo.com/buzz?targetUrl=<?php the_permalink() ?>&headline=<?php the_title(); ?>&summary=<?php the_excerpt(); ?><img src="../images/yahoo.png" alt="Y" width="26" height="26" border="0" /></a>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The correct code is &amp.

    Thread Starter cableghost

    (@cableghost)

    Thank you, however, that also produces errors from validation.w3.org.

    It could possibly be because I am mixing html & php code.

    -Scott

    As far as the validator is concerned you are only outputting html. It doesn’t see any php. &+amp+; (minus the + marks) is the correct code. Please post your url.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Validation Errors’ is closed to new replies.