aboutsummaryrefslogtreecommitdiff
path: root/static/js/posts.js
diff options
context:
space:
mode:
authorFChannel <>2021-06-17 01:05:57 -0700
committerFChannel <>2021-06-17 01:05:57 -0700
commit092cfce209ac6eb2878242378afcda539709a4af (patch)
tree0f04b82ab00bfd25c0f8c0dbae672f9ca372428c /static/js/posts.js
parentcc24155859b65653495747bd0b38be9bcef33298 (diff)
escaping quotes to not break hover, it will probably still break
Diffstat (limited to 'static/js/posts.js')
-rw-r--r--static/js/posts.js4
1 files changed, 3 insertions, 1 deletions
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, '<a class="reply" title="' + q + '" href="'+ (actorName) + "/" + shortURL(actorName, opid) + '#' + shortURL(actorName, link) + '";">>>' + shortURL(actorName, link) + isOP + '</a>');
@@ -143,10 +144,11 @@ function convertContent(actorName, content, opid)
{
match.forEach(function(quote, i) {
newContent = newContent.replace(quote, '<span class="quote">' + quote + '</span>');
+ newContent = newContent.replace(quote, '<span class="quote">' + quote + '</span>');
})
}
- return newContent
+ return newContent.replaceAll('/\>', '>')
}
function convertContentNoLink(actorName, content, opid)