Element.directText

Returns the text directly under this element.

More...
  1. string directText [@property getter]
    class Element
    @property
    string
    directText
    ()
  2. string directText [@property setter]

Detailed Description

Unlike innerText, it does not recurse, and unlike firstInnerText, it continues past child tags. So, <example>some <b>bold</b> text</example> will return some text because it only gets the text, skipping non-text children.

See Also

Meta