Allow small tag in messages

This commit is contained in:
shortcutme 2018-02-21 03:05:11 +01:00
parent a1a2434d98
commit 61699c7477
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -498,7 +498,7 @@ class Wrapper
value = @toHtmlSafe(value)
else
value = String(value).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;') # Escape
value = value.replace(/&lt;([\/]{0,1}(br|b|u|i))&gt;/g, "<$1>") # Unescape b, i, u, br tags
value = value.replace(/&lt;([\/]{0,1}(br|b|u|i|small))&gt;/g, "<$1>") # Unescape b, i, u, br tags
values[i] = value
return values