summaryrefslogtreecommitdiff
path: root/lib/banzai/filter/html_entity_filter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/banzai/filter/html_entity_filter.rb')
-rw-r--r--lib/banzai/filter/html_entity_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/html_entity_filter.rb b/lib/banzai/filter/html_entity_filter.rb
index f3bd587c28b..e008fd428b0 100644
--- a/lib/banzai/filter/html_entity_filter.rb
+++ b/lib/banzai/filter/html_entity_filter.rb
@@ -5,7 +5,7 @@ module Banzai
# Text filter that escapes these HTML entities: & " < >
class HtmlEntityFilter < HTML::Pipeline::TextFilter
def call
- ERB::Util.html_escape_once(text)
+ ERB::Util.html_escape(text)
end
end
end