The MU forums have moved to WordPress.org

problem with single quotes (5 posts)

  1. sivac
    Member
    Posted 5 years ago #

    in the blog search i entered a string with single quotes

    like -> h's

    after search the above keword appear as h\\\'s in the textbox

  2. andrea_r
    Moderator
    Posted 5 years ago #

    Yes, it does that on purpose.

    The whole thing is writtin in php and since php doesn't like ' very much (it's used in php code) WP will convert it liek you've seen.

  3. drmike
    Member
    Posted 5 years ago #

    It should be converting it back though on anything displayed in the browser window.

  4. andrea_r
    Moderator
    Posted 5 years ago #

    i know, but often (depending on where it is I think) it doesn't (like occasionally in the blogroll).

  5. drmike
    Member
    Posted 5 years ago #

    I usually just strip them or encode them myself when I write code.

About this Topic