Support » Fixing WordPress » How to remove filter apostrophe and single quotation

  • My wp version is 3.2.1

    In wordpress, the apostrophe/single quotation will transfer to '

    And I’d better need to transfer to %27;

    I tried to edit formatting.php, in line:

    $string = str_replace( "'", ''', $string ); and $url = str_replace( "'", ''', $url );, but no effect. So how to do it? Or if it is possible, I think add some remove_filter function in theme's funciton.php is more better.

    (**Note**: only transfer apostrophe/single quotation, but keep other quotation formatting.)

    **BTW**: if I do this change, is it safe for my wordpress? this is also I care about. Thanks.

  • The topic ‘How to remove filter apostrophe and single quotation’ is closed to new replies.