org.w3c.dom.CharacterData.substringData
method
public substringData(offset as Int, count as Int) as String throws DOMException
Description

Returns a substring of the node data.

Parameters
  • offset Start offset.
  • count Number of characters.
Returns

Requested substring.

Throws
  • DOMException if the range is invalid.
Example
print(text.substringData(0, 4))