Skip to content

textContent

textContent(element) → string · XML

Get concatenated text content from an XML element (all text nodes). See Chapter 22.

  • element (required): an XML element
utlx
// Input: <p>Hello <b>world</b>!</p>
textContent($input.p)                    // "Hello world!"

Released under AGPL-3.0.