[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('"', '“', $curl);
> $curl = str_replace('"', '”', $curl);
> $curl = str_replace('' ', '‘', $curl);
> $curl = str_replace('' ', '’', $curl);
> $curl = str_replace('… ', '…', $curl);
> $curl = str_replace(' –', '—', $curl);
Would the PHP function "htmlentities()" accomplish the same thing?
More information about the wp-testers
mailing list