diff --git a/lib/wiki.inc.php b/lib/wiki.inc.php index 84aa61b9ec1980901f7e98bb8d651339cd5c6b5b..30f68fead637fdd901b66acfbccb170411b657b0 100644 --- a/lib/wiki.inc.php +++ b/lib/wiki.inc.php @@ -1660,14 +1660,14 @@ function showDiffs($keyword, $versions_since) } $version = array_shift($versions); - $last = $version['body']; + $last = Studip\Markup::removeHtml($version['body']); $lastversion = $version['version']; $zusatz = getZusatz($version); $content = ''; foreach ($versions as $version) { $content .= '<tr>'; - $current = $version['body']; + $current = Studip\Markup::removeHtml($version['body']); $currentversion = $version['version']; $diffarray = '<b><font size=-1>'. _("Änderungen zu") . " </font> $zusatz</b><p>"; @@ -1720,6 +1720,7 @@ function do_diff($strlines1,$strlines2) function toDiffLineArray($lines, $who) { $dla = []; + $lines = Studip\Markup::removeHtml($lines); $lines = explode("\n",preg_replace("/\r/",'',$lines)); foreach ($lines as $l) { $dla[] = new DiffLine($l, $who);