Function: dom-inner-text

dom-inner-text is a byte-compiled function defined in dom.el.gz.

Signature

(dom-inner-text NODE)

Documentation

Return all textual data under NODE as a single string.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/dom.el.gz
(defun dom-inner-text (node)
  "Return all textual data under NODE as a single string."
  (let ((children (dom-children node)))
    (if (and (length= children 1)
             (stringp (car children)))
        ;; Copy the string content when returning to be consistent with
        ;; the other branch of this `if' expression.
        (copy-sequence (car children))
    (with-work-buffer
      (dom-inner-text--1 node)
      (buffer-string)))))