From 9923df7b1954b836aeac74104abaf3eba3e4c750 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 29 Apr 2020 17:37:14 -0400 Subject: [PATCH] let browser validate iframe markup --- ui/component/common/markdown-preview.jsx | 19 ++++++++++++++++--- ui/modal/modalPublish/view.jsx | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ui/component/common/markdown-preview.jsx b/ui/component/common/markdown-preview.jsx index bfbdd3169..a2018b15e 100644 --- a/ui/component/common/markdown-preview.jsx +++ b/ui/component/common/markdown-preview.jsx @@ -80,13 +80,26 @@ const schema = { ...defaultSchema }; schema.protocols.href.push('lbry'); schema.attributes.a.push('embed'); -const REPLACE_REGEX = /(