[wp-testers] Smart Quotes and Commenting

Austin Matzko if.website at gmail.com
Fri Dec 2 14:30:09 GMT 2005


On 12/1/05, Sean Hayford O'Leary <hayfordoleary at gmail.com> wrote:
> It's easy to fix (and I apologise -- I'm not comfortable enough with Trac to
> submit it there). Around line 18 in wp-includes/functions-formatting.php,
> add:
>
>    $curl = str_replace('"', '&#8220;', $curl);
>    $curl = str_replace('"', '&#8221;', $curl);
>    $curl = str_replace('' ', '&#8216;', $curl);
>    $curl = str_replace('' ', '&#8217;', $curl);
>    $curl = str_replace('… ', '&#8230;', $curl);
>    $curl = str_replace(' –', '&#8212;', $curl);

Would the PHP function "htmlentities()" accomplish the same thing?


More information about the wp-testers mailing list