Skip to content

Commit

Permalink
Texturize tweaks
Browse files Browse the repository at this point in the history
git-svn-id: http://core.svn.wordpress.org/trunk@2578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
matt committed May 1, 2005
1 parent a7d063c commit 4f13ee2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-includes/functions-formatting.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ function wptexturize($text) {

if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
$curl = str_replace('---', '&#8212;', $curl);
$curl = preg_replace('/(\s)--(\s)/', '$1&#8212;$2', $curl);
$curl = str_replace(' -- ', ' &#8212; ', $curl);
$curl = str_replace('--', '&#8211;', $curl);
$curl = str_replace('xn&#8211;', 'xn--', $curl);
$curl = str_replace('...', '&#8230;', $curl);
$curl = str_replace('``', '&#8220;', $curl);

Expand Down

0 comments on commit 4f13ee2

Please sign in to comment.