-
Bug
-
Resolution: Fixed
-
3.0.1
-
None
-
PHP Environment:
Database:
When you want to show some PHP code in a post, like this
<php
|
echo "<a href=\"javascript:history.back()\">";
|
?php
|
it will show : instead of : after javascript
<php echo "<a href=\"javascript:history.back()\">";?php
|
that's because the function highlight_string replaces & by & so : becomes :
In order to fix this I did the same
OPEN
includes/message_parser.php
SEARCH
$code = highlight_string($code, true);
|
REPLACE WITH
$code = str_replace("&", "&amp;", $code);
|
$code = highlight_string($code, true);
|
$code = str_replace("&", "&", $code);
|