Module: StringUtilityBelt::Entities

Included in:
String
Defined in:
lib/string_utility_belt/entities.rb

Constant Summary

CODER =
HTMLEntities.new

Instance Method Summary collapse

Instance Method Details

#decode_entitiesObject



11
12
13
# File 'lib/string_utility_belt/entities.rb', line 11

def decode_entities
  CODER.decode(self)
end

#decode_entities_and_cleanerObject



15
16
17
# File 'lib/string_utility_belt/entities.rb', line 15

def decode_entities_and_cleaner
  decode_entities.tag_cleaner
end

#generate_entitiesObject



7
8
9
# File 'lib/string_utility_belt/entities.rb', line 7

def generate_entities
  CODER.encode(self)
end