diff --git a/src/General/Build.coffee b/src/General/Build.coffee index be314f118..859d686de 100755 --- a/src/General/Build.coffee +++ b/src/General/Build.coffee @@ -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