remove unexpected HTML instead of converting it to text
This commit is contained in:
parent
daaf589f1a
commit
4cc724cee4
@ -3,7 +3,7 @@ Build =
|
||||
spoilerRange: {}
|
||||
unescape: (text) ->
|
||||
return text unless text?
|
||||
text.replace /&(amp|#039|quot|lt|gt);/g, (c) ->
|
||||
text.replace(/<[^>]*>/g, '').replace /&(amp|#039|quot|lt|gt);/g, (c) ->
|
||||
{'&': '&', ''': "'", '"': '"', '<': '<', '>': '>'}[c]
|
||||
shortFilename: (filename, isReply) ->
|
||||
threshold = 30
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user