module Oga::HTML::Entities

Constants

DECODE_MAPPING

Hash mapping HTML entities to their Unicode character replacements.

Based on the JSON output as listed at www.w3.org/TR/html5/syntax.html#named-character-references

@return [Hash]

Public Class Methods

decode(input) click to toggle source

Decodes HTML entities.

@see [decode]

# File lib/oga/html/entities.rb, line 2141
def self.decode(input)
  XML::Entities.decode(input, DECODE_MAPPING)
end