source:
gs2-extensions/ngramj/src/wiki/wiki2xml/heading-fix.patch@
25141
Last change on this file since 25141 was 25141, checked in by , 12 years ago | |
---|---|
File size: 627 bytes |
-
wiki2xml.php
1449 1449 1450 1450 # Remove HTML comments 1451 1451 # $this->w = str_replace ( "\n<!--" , "<!--" , $this->w ) ; 1452 $this->w= preg_replace('/\n<!--(.|\s)*?-->\n/', "<!-- --> ", $this->w); 1452 # Important: Do not remove leading \n, since it could be a heading delimiter 1453 $this->w= preg_replace('/\n<!--(.|\s)*?-->\n/', "\n<!-- --> ", $this->w); 1453 1454 $this->w= preg_replace('/<!--(.|\s)*?-->/', '', $this->w); 1454 1455 $this->w= preg_replace('/<!--(.|\s)*$/', '', $this->w); 1455 1456
Note:
See TracBrowser
for help on using the repository browser.