From 98f5a2a572d26c83c7e1d90b043f0960bd85e388 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 24 Dec 2021 12:23:39 +0100 Subject: [PATCH] Also set for .html files without tags --- htmlpreview.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/htmlpreview.js b/htmlpreview.js index a38e616..d5dbb14 100644 --- a/htmlpreview.js +++ b/htmlpreview.js @@ -61,7 +61,16 @@ var loadHTML = function (data) { if (data) { - data = data.replace(/]*)>/i, '').replace(/ just after and replace