From 092cfce209ac6eb2878242378afcda539709a4af Mon Sep 17 00:00:00 2001
From: FChannel <>
Date: Thu, 17 Jun 2021 01:05:57 -0700
Subject: escaping quotes to not break hover, it will probably still break
---
static/js/posts.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
(limited to 'static/js')
diff --git a/static/js/posts.js b/static/js/posts.js
index 5be272a..78f3cae 100644
--- a/static/js/posts.js
+++ b/static/js/posts.js
@@ -129,6 +129,7 @@ function convertContent(actorName, content, opid)
if(document.getElementById(link + "-content") != null) {
q = document.getElementById(link + "-content").innerText;
+ q = q.replaceAll('>', '/\>')
}
newContent = newContent.replace(quote, '>>' + shortURL(actorName, link) + isOP + '');
@@ -143,10 +144,11 @@ function convertContent(actorName, content, opid)
{
match.forEach(function(quote, i) {
newContent = newContent.replace(quote, '' + quote + '');
+ newContent = newContent.replace(quote, '' + quote + '');
})
}
- return newContent
+ return newContent.replaceAll('/\>', '>')
}
function convertContentNoLink(actorName, content, opid)
--
cgit v1.2.3