improving anchor canonization
This commit is contained in:
parent
517079cce1
commit
5d6a4b79dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue