diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-06-27 23:08:39 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-06 02:57:09 +0300 |
commit | d6b60e83edb755347c56e38770fcdffab9edbfa0 (patch) | |
tree | a1fe24959d98ea3220214f9afe2a4050fdafd17d /lib | |
parent | ab811b6ab929d3f220e060c15c49bc075d91e5f2 (diff) |
Move `unescape_html_entities` from LabelsHelper to Label model
Diffstat (limited to 'lib')
-rw-r--r-- | lib/banzai/filter/label_reference_filter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/banzai/filter/label_reference_filter.rb b/lib/banzai/filter/label_reference_filter.rb index 7d016d78669..fdd4afce606 100644 --- a/lib/banzai/filter/label_reference_filter.rb +++ b/lib/banzai/filter/label_reference_filter.rb @@ -68,7 +68,7 @@ module Banzai end def unescape_html_entities(text) - LabelsHelper.unescape_html_entities(text) + text.to_s.gsub(/(>)|(<)|(&)/, Label::TABLE_FOR_ESCAPE_HTML_ENTITIES.invert) end end end |