diff options
-rw-r--r-- | bugzilla.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bugzilla.rb b/bugzilla.rb index dbe21c8..8fb235c 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -22,17 +22,14 @@ require 'csv' # if it's not available. begin require 'htmlentities' - require 'htmlentities/string' -rescue LoadError # If we don't have htmlentities extension available, replace # decode_entities with a dummy function. class String - def decode_entities - return self - end + def decode_entities + return HTMLEntities.decode(self) + end end - end # Valid statuses |