diff --git a/htdocs/application/models/pastes.php b/htdocs/application/models/pastes.php index 9f8bdd3..6679fc6 100644 --- a/htdocs/application/models/pastes.php +++ b/htdocs/application/models/pastes.php @@ -635,6 +635,8 @@ class Pastes extends CI_Model function _format_diff($text) { $text = str_replace("\t", '        ', $text); + $text = str_replace("
", '
', $text); + $text = str_replace(" ", ' ', $text); $text = '
' . $text . '
'; return $text; }