From 20b719d0de4a47be93691027fa69f32eb2c49d10 Mon Sep 17 00:00:00 2001 From: Scott Tolksdorf Date: Mon, 26 Nov 2018 19:46:51 -0500 Subject: [PATCH] Added in a function to sanatize script tags specifically --- package.json | 2 +- shared/naturalcrit/markdown.js | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4343e92..088a5ef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "homebrewery", "description": "Create authentic looking D&D homebrews using only markdown", - "version": "2.8.0", + "version": "2.8.1", "repository": { "type": "git", "url": "git://github.com/stolksdorf/homebrewery.git" diff --git a/shared/naturalcrit/markdown.js b/shared/naturalcrit/markdown.js index 3c14784..fa96d75 100644 --- a/shared/naturalcrit/markdown.js +++ b/shared/naturalcrit/markdown.js @@ -13,6 +13,11 @@ renderer.html = function (html) { return html; }; +const sanatizeScriptTags = (content)=>{ + return content + .replace(/