Index: trunk/phase3/includes/Parser.php |
— | — | @@ -420,6 +420,8 @@ |
421 | 421 | $text = str_replace ( "<HR>", "<hr />", $text ); |
422 | 422 | $text = str_replace ( "<br>", "<br />", $text ); |
423 | 423 | $text = str_replace ( "<br >", "<br />", $text ); |
| 424 | + $text = str_replace ( '<center>', '<span style="text-align: center">', $text ); |
| 425 | + $text = str_replace ( '</center>', '</span>', $text ); |
424 | 426 | |
425 | 427 | $text = $this->doHeadings( $text ); |
426 | 428 | |
— | — | @@ -1270,7 +1272,7 @@ |
1271 | 1273 | $htmlpairs = array( # Tags that must be closed |
1272 | 1274 | "b", "i", "u", "font", "big", "small", "sub", "sup", "h1", |
1273 | 1275 | "h2", "h3", "h4", "h5", "h6", "cite", "code", "em", "s", |
1274 | | - "strike", "strong", "tt", "var", "div", "center", |
| 1276 | + "strike", "strong", "tt", "var", "div", "span", |
1275 | 1277 | "blockquote", "ol", "ul", "dl", "table", "caption", "pre", |
1276 | 1278 | "ruby", "rt" , "rb" , "rp", "p" |
1277 | 1279 | ); |
— | — | @@ -1469,8 +1471,8 @@ |
1470 | 1472 | |
1471 | 1473 | # strip out HTML |
1472 | 1474 | $canonized_headline = preg_replace( "/<.*?" . ">/","",$canonized_headline ); |
1473 | | - |
1474 | | - $canonized_headline = preg_replace("/[ &\\/<>\\(\\)\\[\\]=,+]+/", '_', html_entity_decode(trim( $canonized_headline ))); |
| 1475 | + $tocline = trim( $canonized_headline ); |
| 1476 | + $canonized_headline = preg_replace("/[ &\\/<>\\(\\)\\[\\]=,+]+/", '_', html_entity_decode( $tocline)); |
1475 | 1477 | $refer[$headlineCount] = $canonized_headline; |
1476 | 1478 | |
1477 | 1479 | # count how many in assoc. array so we can track dupes in anchors |