From 8acd3a50609571142a7d4338c13fd55246327051 Mon Sep 17 00:00:00 2001 From: Hannah Wolfe Date: Thu, 31 Jul 2014 17:42:43 +0100 Subject: [PATCH] Updating HTML for script placeholders --- ghost/admin/helpers/gh-format-html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/admin/helpers/gh-format-html.js b/ghost/admin/helpers/gh-format-html.js index 436a6e7960..ce92b9a6b4 100644 --- a/ghost/admin/helpers/gh-format-html.js +++ b/ghost/admin/helpers/gh-format-html.js @@ -6,9 +6,9 @@ var formatHTML = Ember.Handlebars.makeBoundHelper(function (html) { // replace script and iFrame escapedhtml = escapedhtml.replace(/)<[^<]*)*<\/script>/gi, - '
Embedded JavaScript
'); + '
Embedded JavaScript
'); escapedhtml = escapedhtml.replace(/)<[^<]*)*<\/iframe>/gi, - '
Embedded IFrame
'); + '
Embedded iFrame
'); // sanitize HTML escapedhtml = html_sanitize(escapedhtml, cajaSanitizers.url, cajaSanitizers.id);