From cac8b5026e5e7c4e56dd6be9b6db69d2d6aaf677 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 28 Jan 2022 14:52:22 -0600 Subject: [PATCH] Fix RT spacing in the other place --- app/soapbox/utils/html.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/utils/html.js b/app/soapbox/utils/html.js index fec437c03..f303ba8e8 100644 --- a/app/soapbox/utils/html.js +++ b/app/soapbox/utils/html.js @@ -1,7 +1,7 @@ // NB: This function can still return unsafe HTML export const unescapeHTML = (html) => { const wrapper = document.createElement('div'); - wrapper.innerHTML = html.replace(//g, '\n').replace(/<\/p>

/g, '\n\n').replace(/<[^>]*>/g, ''); + wrapper.innerHTML = html.replace(//g, '\n').replace(/<\/p><[^>]*>/g, '\n\n').replace(/<[^>]*>/g, ''); return wrapper.textContent; };