Class: String

Class | String
In: | lib/htmlentities/string.rb
Parent: | Object

This file extends the String class with methods to allow encoding and decoding of HTML/XML entities from/to their corresponding UTF-8 codepoints.

### Methods

decode_entities encode_entities

### Public Instance methods

decode_entities()

Decode XML and HTML 4.01 entities in a string into their UTF-8 equivalents.

encode_entities(*instructions)

Encode codepoints in a string into their corresponding entities. See the documentation of HTMLEntities.encode_entities for a list of possible instructions.

[Validate]