make alt text represent the actual input text

This commit is contained in:
Mystikfluu 2022-08-28 21:50:59 +02:00
parent e2dc0b19a6
commit edc167bbdf

View File

@ -30,7 +30,7 @@ function filterMentions(text) {
const emojiregex = /:([^:\s]*):/gi const emojiregex = /:([^:\s]*):/gi
function emojify(text) { function emojify(text) {
return text.replace(emojiregex,"<img class='emoji' src='/images/emoji/$1.png' alt='$1' title=':$1:' height=20/>") return text.replace(emojiregex,"<img class='emoji' src='/images/emoji/$1.png' alt=':$1:' title=':$1:' height=20/>")
} }
function unemojify(text){ function unemojify(text){