From: Erik Moeller Date: Mon, 30 Jun 2003 02:51:50 +0000 (+0000) Subject: improving anchor canonization X-Git-Tag: 1.1.0~470 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=5d6a4b79dd92b92bdcf70191842c91850e1b7163;p=lhc%2Fweb%2Fwiklou.git improving anchor canonization --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index edda205224..598bdcde28 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1255,8 +1255,8 @@ class OutputPage { $canonized_headline=preg_replace("/<.*?>/","",$headline); // strip out HTML - $canonized_headline=htmlspecialchars($canonized_headline); $tocline=$canonized_headline; + $canonized_headline=str_replace('"',"",$canonized_headline); $canonized_headline=str_replace(" ","_",trim($canonized_headline)); $refer[$c]=$canonized_headline; $refers[$canonized_headline]++; // count how many in assoc. array so we can track dupes in anchors