Programmer's Guide > Interfaces > ARange interface > toMarkupStringEx method
  
toMarkupStringEx method
Returns the contents of a Range as a string, with control over the markup. This string contains the character data and markup representing the entire contents of the range.
toMarkupStringEx( [flags] )
Parameters
intflags
[optional] A bitmask that specifies markup options. Constructed by ORing the bits from the MarkupFlags enumeration.
Returns
String. The contents of the Range.
Throws
DOMException
INVALID_STATE_ERR: Raised if the Range has already been detached.