Hack for CKEditor and GeSHiFilter
This commit is contained in:
parent
3b2b960a73
commit
4b3450265a
1 changed files with 11 additions and 1 deletions
|
@ -2161,6 +2161,16 @@ class GeSHi {
|
||||||
$code = str_replace("\r\n", "\n", $this->source);
|
$code = str_replace("\r\n", "\n", $this->source);
|
||||||
$code = str_replace("\r", "\n", $code);
|
$code = str_replace("\r", "\n", $code);
|
||||||
|
|
||||||
|
// Hack for "CKEditor and GeSHiFilter":
|
||||||
|
$code = str_replace(">", ">", $code);
|
||||||
|
$code = str_replace("<", "<", $code);
|
||||||
|
$code = str_replace("›", "›", $code);
|
||||||
|
$code = str_replace("‹", "‹", $code);
|
||||||
|
$code = str_replace("'", "'", $code);
|
||||||
|
$code = str_replace(""", "\"", $code);
|
||||||
|
$code = str_replace("&", "&", $code);
|
||||||
|
// End Hack.
|
||||||
|
|
||||||
// Firstly, if there is an error, we won't highlight
|
// Firstly, if there is an error, we won't highlight
|
||||||
if ($this->error) {
|
if ($this->error) {
|
||||||
//Escape the source for output
|
//Escape the source for output
|
||||||
|
@ -4772,4 +4782,4 @@ if (!function_exists('geshi_highlight')) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Reference in a new issue