Closed (fixed)
Project:
WYSIWYG - GeSHi bridge
Version:
6.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Aug 2010 at 06:16 UTC
Updated:
7 Aug 2010 at 06:03 UTC
In the Geshi hack, you mention adding
// Replace all newlines to a common form.
$code = str_replace(">", ">", $code);
$code = str_replace("<", "<", $code);
$code = str_replace("&", "&", $code);
$code = str_replace("'", "'", $code);
$code = str_replace(""", "\"", $code);
but there are already two existing lines.
// Replace all newlines to a common form.
$code = str_replace("\r\n", "\n", $this->source);
$code = str_replace("\r", "\n", $code);
Are those lines supposed to be replaced or appended to?
Comments
Comment #1
Slovak commentedYou should append those lines.