Skip to content

Commit 198be2f

Browse files
committed
Fix peej#76
Converts HTML entities in sources to safe display
1 parent 61910bc commit 198be2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doclets/standard/sourceWriter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public function sourceWriter(&$doclet)
9090
$geshi = new GeSHi($data[0], 'php');
9191
$source = $geshi->parse_code();
9292
} else {
93-
$source = '<pre>'.$data[0].'</pre>';
93+
$source = '<pre>'.htmlspecialchars($data[0]).'</pre>';
9494
}
9595

9696
ob_start();

0 commit comments

Comments
 (0)