REXML::Text
Represents text nodes in an XML document
Included modules
- Comparable
Constants
EREFERENCE = /&(?!#{Entity::NAME};)/
NEEDS_A_SECOND_CHECK = /(<|&((#{Entity::NAME});|(#0*((?:\\d+)|(?:x[a-fA-F0-9]+)));)?)/um
NUMERICENTITY = /�*((?:\\d+)|(?:x[a-fA-F0-9]+));/
REFERENCE = /#{Entity::REFERENCE}/
SETUTITSBUS = [ /</u, />/u, /"/u, /'/u, /&/u ]
SLAICEPS = [ '<', '>', '"', "'", '&' ]
SPECIALS = [ /&(?!#?[\\w-]+;)/u, /</u, />/u, /"/u, /'/u, /\\r/u ]
SUBSTITUTES = ['&', '<', '>', '"', ''', ' ']
VALID_CHAR = [\n0x9, 0xA, 0xD,\n(0x20..0xD7FF),\n(0xE000..0xFFFD),\n(0x10000..0x10FFFF)\n]
VALID_XML_CHARS = Regexp.new('^['+\nVALID_CHAR.map { |item|\ncase item\nwhen Integer\n[item].pack('U').force_encoding('utf-8')\nwhen Range\n[item.first, '-'.ord, item.last].pack('UUU').force_encoding('utf-8')\nend\n}.join +\n']*$')
Attributes
| [RW] | raw |
Files
- lib/rexml/text.rb