Element.text

Returns the decoded interior of an element.

The element is assumed to contain text <i>only</i>. So, for example, given XML such as "&lt;title&gt;Good &amp;amp; Bad&lt;/title&gt;", will return "Good &amp; Bad".

class Element
const
string
text

Parameters

mode DecodeMode

(optional) Mode to use for decoding. (Defaults to LOOSE).

Throws

DecodeException if decode fails

Meta