Skip to content
Permalink
Browse files

MDL-8185: Changed wiki html tag balancer to leave CDATA sections alone

  • Loading branch information...
sam_marshall
sam_marshall committed Jan 15, 2007
1 parent de4214a commit 2cf02a3935dde007865791a1d67c2744fd0b8a53
Showing with 5 additions and 1 deletion.
  1. +5 −1 mod/wiki/ewiki/plugins/moodle/f_fixhtml.php
@@ -96,8 +96,12 @@ function ewiki_html_tag_balancer(&$html) {
#-- opening tag?
elseif ($tname[0] != "/") {
#-- cdata
if($tname=='![cdata[') {
// LEAVE THE POOR THING ALONE!
}
#-- standalone tag
if (in_array($tname, $html_standalone)) {
else if (in_array($tname, $html_standalone)) {
$tattr = rtrim(rtrim($tattr, "/"));
if (EWIKI_XHTML) {
$tattr .= " /";

0 comments on commit 2cf02a3

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