Skip to content
Permalink
Browse files

Prevent links parsing inside WYSIWYG-edited code tags

  • Loading branch information...
chrisgraham committed Jul 29, 2019
1 parent 24b8c3d commit a44f17f5feb24355ee2bea4c944fa1067cbf80c5
Showing with 1 addition and 0 deletions.
  1. +1 −0 sources/comcode.php
@@ -114,6 +114,7 @@ function html_to_comcode($html, $force = true)
// As this is not semi-html, but will be converted as if it is, we need to fiddle any Comcode trigger characters into neutered entities
$html = str_replace('[', '[', $html);
$html = str_replace('{', '{', $html);
$html = str_replace('://', '://', $html);
// Do it
require_code('comcode_from_html');

0 comments on commit a44f17f

Please sign in to comment.
You can’t perform that action at this time.