Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

hybrid hook and ampersands.

  1. if i enter

    <a href="http://validator.w3.org/check?verbose=1&amp;uri=<?php echo curPageURL() ?>" rel="external,nofollow">XHTML</a>

    via hybrid hook in, for example, the footer section, i get this exact code to the browser. but from then on, everytime i view the hybrid hook settings page, it substituted &amp; for &, so if i click save settings again (because let's say I added something to header), I start getting

    <a href="http://validator.w3.org/check?verbose=1&uri=<?php echo curPageURL() ?>" rel="external,nofollow">XHTML</a>

    on the browser, and for this reason the page fails validation.

    is this something that can be fixed? similar character replacement occurs if i enter uni-encoded HTML in there, but that is not so much of a problem cause it doesnt cause my site to fail validation.

  2. You must be a logged-in exclusive member to view this reply.

  3. uh ok... im going to leave it inside hybrid hook for now. if i put it in functions, i have to use HTML entities and to workaround this problem i can run one single global search and replace, whereas HTML entities are a bigger pain in the a...

Reply

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Bliss Theme (202 posts)
  • Hybrid Theme (17,072 posts)
  • Options Theme (10,322 posts)
  • Structure Theme (2,626 posts)
  • Visionary Theme (767 posts)
  • bbPress Themes (293 posts)
  • WordPress Plugins (1,619 posts)
  • General Discussion (4,003 posts)