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

wrap

wrap(string, width, addnewline=false) Instance Public methods

2015-05-07 16:39:07
expand

expand(ref, doctype, filter) Class Public methods

2015-05-07 15:19:42
unnormalize

unnormalize( string, doctype=nil, filter=nil, illegal=nil ) Class Public methods Unescapes

2015-05-07 15:41:01
write

write( writer, indent=-1, transitive=false, ie_hack=false ) Instance Public methods

2015-05-07 16:44:28
parent=

parent=(parent) Instance Public methods

2015-05-07 16:16:03
<=>

<=>( other ) Instance Public methods other a String or a

2015-05-07 15:46:17
indent_text

indent_text(string, level=1, style="\t", indentfirstline=true) Instance Public methods

2015-05-07 16:03:35
value=

value=( val ) Instance Public methods Sets the contents of this text node.

2015-05-07 16:31:33
to_s

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

2015-05-07 16:21:13
new

new(arg, respect_whitespace=false, parent=nil, raw=nil, entity_filter=nil, illegal=NEEDS_A_SECOND_CHECK ) Class Public

2015-05-07 15:22:09