Make WordPress Core


Ignore:
Timestamp:
05/01/2005 07:21:42 PM (20 years ago)
Author:
matt
Message:

Texturize tweaks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r2549 r2578  
    1111        if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
    1212            $curl = str_replace('---', '&#8212;', $curl);
    13             $curl = preg_replace('/(\s)--(\s)/', '$1&#8212;$2', $curl);
     13            $curl = str_replace(' -- ', ' &#8212; ', $curl);
    1414            $curl = str_replace('--', '&#8211;', $curl);
     15            $curl = str_replace('xn&#8211;', 'xn--', $curl);
    1516            $curl = str_replace('...', '&#8230;', $curl);
    1617            $curl = str_replace('``', '&#8220;', $curl);
Note: See TracChangeset for help on using the changeset viewer.