about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util/html.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/javascript/flavours/glitch/util/html.js')
-rw-r--r--app/javascript/flavours/glitch/util/html.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/javascript/flavours/glitch/util/html.js b/app/javascript/flavours/glitch/util/html.js
deleted file mode 100644
index 5159df9db..000000000
--- a/app/javascript/flavours/glitch/util/html.js
+++ /dev/null
@@ -1,5 +0,0 @@
-export const unescapeHTML = (html) => {
-  const wrapper = document.createElement('div');
-  wrapper.innerHTML = html.replace(/<br\s*\/?>/g, '\n').replace(/<\/p><p>/g, '\n\n').replace(/<[^>]*>/g, '');
-  return wrapper.textContent;
-};