• Resolved garbonzo

    (@garbonzo)


    Hi,

    When I make a post with apostrophes, ellipsis, and a few other punctuation marks, wp displays the thing correctly, but the source code shows stuff like &#8 217;
    So if I wrote “don’t”, it shows up fine to a user, but the source code shows “don&#82 17;t”
    And that’s what shows up in the rss, which is what shows up in people’s rss readers. Really annoying!
    How can I stop wp from doing this automatic change?

    Thanks
    PS. what is that called, those phrases like &#82 17;
    ?
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • that’s ASCII code – it’s basically generic and the “proper” way to code in symbols…

    i read something about “fancy quotations” before – though I don’t know the thread offhand, maybe you can do a search for that and see if that helps?

    Actually they’re called ‘numeric character references,’ or NCRs.

    Two ways to turn it off are:

    Plugin method:
    https://dev.wp-plugins.org/wiki/TextControl
    (You want ‘no character encoding.’)

    Manual method:

    Edit default-filters.php (wp-includes/ directory). You want to either comment out or remove any add_filter() call referring to wptexturize. For example:

    add_filter('the_content', 'wptexturize');

    can be commented out like so:

    // add_filter('the_content', 'wptexturize');

    Thread Starter garbonzo

    (@garbonzo)

    Kafka – TextControl – booyow! Thanks buddy!

    thanks for that, kaf… this thread should be a great reference now for future posters… ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How do I stop wp from changing ‘ to &#8 217;?’ is closed to new replies.