remove unexpected HTML instead of converting it to text
This commit is contained in:
parent
daaf589f1a
commit
4cc724cee4
@ -3,7 +3,7 @@ Build =
|
|||||||
spoilerRange: {}
|
spoilerRange: {}
|
||||||
unescape: (text) ->
|
unescape: (text) ->
|
||||||
return text unless 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]
|
{'&': '&', ''': "'", '"': '"', '<': '<', '>': '>'}[c]
|
||||||
shortFilename: (filename, isReply) ->
|
shortFilename: (filename, isReply) ->
|
||||||
threshold = 30
|
threshold = 30
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user