Type:
Class
Constants:
SPECIALS : [ /&(?!#?[\w-]+;)/u, /</u, />/u, /"/u, /'/u, /\r/u ]

The order in which the substitutions occur

SUBSTITUTES : ['&amp;', '&lt;', '&gt;', '&quot;', '&apos;', '&#13;']
SLAICEPS : [ '<', '>', '"', "'", '&' ]

Characters which are substituted in written strings

SETUTITSBUS : [ /&lt;/u, /&gt;/u, /&quot;/u, /&apos;/u, /&amp;/u ]
NEEDS_A_SECOND_CHECK : /(<|&((#{Entity::NAME});|(#0*((?:\d+)|(?:x[a-fA-F0-9]+)));)?)/um
NUMERICENTITY : /&#0*((?:\d+)|(?:x[a-fA-F0-9]+));/
VALID_CHAR : [ 0x9, 0xA, 0xD, (0x20..0xD7FF), (0xE000..0xFFFD), (0x10000..0x10FFFF) ]
VALID_XML_CHARS : Regexp.new('^['+ VALID_CHAR.map { |item| case item when Fixnum [item].pack('U').force_encoding('utf-8') when Range [item.first, '-'.ord, item.last].pack('UUU').force_encoding('utf-8') end }.join + ']*$')
REFERENCE : /#{Entity::REFERENCE}/
EREFERENCE : /&(?!#{Entity::NAME};)/

Represents text nodes in an XML document

to_s

to_s() Instance Public methods Returns the string value of this text node.

2015-05-07 16:21:13
inspect

inspect() Instance Public methods

2015-05-07 16:08:41
check

check(string, pattern, doctype) Class Public methods check for illegal characters

2015-05-07 15:18:53
empty?

empty?() Instance Public methods

2015-05-07 15:57:49
doctype

doctype() Instance Public methods

2015-05-07 15:55:17
read_with_substitution

read_with_substitution( input, illegal=nil ) Class Public methods Reads text

2015-05-07 15:33:26
node_type

node_type() Instance Public methods

2015-05-07 16:11:53
<<

<<( to_append ) Instance Public methods Appends text to this text node

2015-05-07 15:42:20
xpath

xpath() Instance Public methods FIXME This probably won't work properly

2015-05-07 16:49:48
clone

clone() Instance Public methods

2015-05-07 15:48:41