Texturize tweak.

git-svn-id: http://svn.automattic.com/wordpress/trunk@875 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2004-02-16 03:02:25 +00:00
parent b3574c0daf
commit a8d831a286
1 changed files with 1 additions and 4 deletions

View File

@ -6,10 +6,7 @@ function wptexturize($text) {
$stop = count($textarr); $next = true; // loop stuff $stop = count($textarr); $next = true; // loop stuff
for ($i = 0; $i < $stop; $i++) { for ($i = 0; $i < $stop; $i++) {
$curl = $textarr[$i]; $curl = $textarr[$i];
if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Gecko')) {
$curl = str_replace('<q>', '&#8220;', $curl);
$curl = str_replace('</q>', '&#8221;', $curl);
}
if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag if (isset($curl{0}) && '<' != $curl{0} && $next) { // If it's not a tag
$curl = str_replace('---', '&#8212;', $curl); $curl = str_replace('---', '&#8212;', $curl);
$curl = str_replace('--', '&#8211;', $curl); $curl = str_replace('--', '&#8211;', $curl);