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

- (Object) decode_entities



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

def decode_entities
  CODER.decode(self)
end

- (Object) decode_entities_and_cleaner



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

def decode_entities_and_cleaner
  decode_entities.tag_cleaner
end

- (Object) generate_entities



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

def generate_entities
  CODER.encode(self)
end