make alt text represent the actual input text
This commit is contained in:
parent
e2dc0b19a6
commit
edc167bbdf
@ -30,7 +30,7 @@ function filterMentions(text) {
|
||||
|
||||
const emojiregex = /:([^:\s]*):/gi
|
||||
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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user