How to remove filter apostrophe and single quotation (1 post)

  1. youlichika
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic