File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 17
17
"php" : " >=5.3" ,
18
18
"react/event-loop" : " ~0.4.0|~0.3.0" ,
19
19
"clue/buzz-react" : " ~0.2.0" ,
20
- "ext-simplexml" : " *" ,
21
- "ext-tidy" : " *"
20
+ "ext-simplexml" : " *"
22
21
},
23
22
"require-dev" : {
24
23
"clue/block-react" : " ~0.1.0"
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ public function loadXmlFile($path)
13
13
14
14
public function loadXmlString ($ html )
15
15
{
16
- // clean up HTML to safe XML
17
- $ html = tidy_repair_string ( $ html , array (
18
- ' output-xml ' => true ,
19
- ' input-xml ' => true ,
20
- ) );
16
+ // fix invalid markup of help link in footer of outdated ViewVC versions
17
+ $ html = str_replace ( ' Help</strong></td> ' , ' Help</a></strong></td> ' , $ html );
18
+
19
+ // replace unneeded HTML entities
20
+ $ html = str_replace ( ' ' , ' ' , $ html );
21
21
22
22
// clean up namespace declaration
23
23
$ html = str_replace ('xmlns=" ' , 'ns=" ' , $ html );
You can’t perform that action at this time.
0 commit comments