From 5bf61d93c1f581b752447d56d0c29064ba455c5a Mon Sep 17 00:00:00 2001 From: Julia Bayer Date: Mon, 4 Apr 2016 16:34:08 +0200 Subject: [PATCH] Add function to clear content. --- lib/Caxy/HtmlDiff/HtmlDiff.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/Caxy/HtmlDiff/HtmlDiff.php b/lib/Caxy/HtmlDiff/HtmlDiff.php index 07dd23d..e4c9a9a 100644 --- a/lib/Caxy/HtmlDiff/HtmlDiff.php +++ b/lib/Caxy/HtmlDiff/HtmlDiff.php @@ -86,6 +86,11 @@ public function getInsertSpaceInReplace() return $this->config->isInsertSpaceInReplace(); } + public function clearContent() + { + $this->content = ''; + } + /** * @return string */