Function: newsticker--parse-text-container

newsticker--parse-text-container is a byte-compiled function defined in newst-backend.el.gz.

Signature

(newsticker--parse-text-container NODE)

Documentation

Handle content according to `type' attribute.

Source Code

;; Defined in /usr/src/emacs/lisp/net/newst-backend.el.gz
(defun newsticker--parse-text-container (node)
  "Handle content according to ``type'' attribute."
  (let ((content (car (xml-node-children node)))
        (type (xml-get-attribute node 'type)))
    (if (string= "xhtml" type)
        ;; xhtml: reverse-parse xml nodes back to string
        (newsticker--unxml content)
      ;; plain text (default) or entity-escaped html: return as-is
      content)))