WordPress.org

Ready to get started?Download WordPress

Forums

ampersand encoding within posts (4 posts)

  1. jdarby
    Member
    Posted 7 years ago #

    I'm having an issue with encoded ampersands within URLs inside posts. I have a post that contains a URL that has an encoded ampersand when you go to the html edit view on the "Write Post" screen. When the page is run through the W3C validator, the same ampersand is shown as not encoded, any idea why this is happening?

    the post is located @ http://undertheblackhat.com/archives/1834

  2. StyledSheet
    Member
    Posted 7 years ago #

    just change it to &

    it doesn't matter that it's a URL, it will still work correctly, and it will validate too.

  3. jdarby
    Member
    Posted 7 years ago #

    I'm going to post my code for this post because I really can't figure out why it isn't validating correctly. I'm having similar problems with other posts, maybe I'm just simply overlooking something simple, but check this out:

    <p><img alt="American Idol, Stephanie Edwards" src="http://i.realone.com/assets/rn/img/3/7/6/1/13891673-13891675-large.jpg" /></p>
    <ul>
    	<li>In a move that may inspire riots in the street, southern soul-singing diva <strong><a href="http://abcnews.go.com/Entertainment/wireStory?id=2971692">Stephanie Edwards</a></strong> was, <strong><a href="http://www.rollingstone.com/rockdaily/index.php/2007/03/21/blogging-american-idol-mrs-scarnato-youve-got-a-lovely-daughter/">as we predicted</a></strong>, voted off <em>American Idol</em> last night.</li>
    	<li>Apparently there are living humans who feel that pop culture needs another go-round with the <strong><a href="http://entertainmentwise.com/news?id=29611">Spice Girls</a></strong>. Now that Mel C has said yes (!) the group may reunite.</li>
    	<li><strong><a href="http://www.roadrunnerrecords.com/blabbermouth.net/news.aspx?mode=Article&amp;newsitemID=69152">Sebastian Bach</a></strong> has reportedly opened his own eBay store. This way he can get rid of all the rock stuff overtaking his house, he says. We want the hat Gil wears when delivering sandwiches on the <em>Gilmore Girls</em>.</li>
    	<li>Whew. If Sonic Youth is going to bother to play the entirety of <em>Daydream Nation</em> they should do it more than once. And now, according to <strong><a href="http://www.pitchforkmedia.com/article/news/41845-sonic-youth-take-idaydreami-to-more-nations">Pitchfork</a></strong>, they will.</li>
    </ul>

    That is how my code reads exactly for the post in question and I have posts that are similar.

  4. inot-american
    Member
    Posted 6 years ago #

    Did you resolved the problem's topic?

    I had the problem at my new site: http://not-american.com

    ...in a page, i deleted now.

    If you get the solution, please share with me! =)

Topic Closed

This topic has been closed to new replies.

About this Topic