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

Public Instance methods

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

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

[Validate]