From ebc7330717afcf77e063d767b47d8bf3d6b8e7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Kv=C3=A1=C4=8Dek?= Date: Fri, 22 Jul 2016 01:01:38 +0200 Subject: [PATCH] FEATURE: show diff as escaped HTML --- app/Models/ContentHistory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/ContentHistory.php b/app/Models/ContentHistory.php index 5dd46610..14dbd1a9 100644 --- a/app/Models/ContentHistory.php +++ b/app/Models/ContentHistory.php @@ -95,6 +95,6 @@ class ContentHistory extends Model public function getDiff($change) { - return Differ::htmlDiff($change->old_value, $change->new_value); + return Differ::htmlDiff(e($change->old_value), e($change->new_value)); } } \ No newline at end of file