Function: html2text-get-attr

html2text-get-attr is a byte-compiled function defined in html2text.el.gz.

Signature

(html2text-get-attr P1 P2)

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/html2text.el.gz
(defun html2text-get-attr (p1 p2)
  (goto-char p1)
  (re-search-forward "\\s-+" p2 t)
  (let (attr-list)
    (while (re-search-forward "[-a-z0-9._]+" p2 t)
      (setq attr-list
	    (cons
	     (list (match-string 0)
		   (when (looking-at "\\s-*=")
		     (goto-char (match-end 0))
		     (skip-chars-forward "[:space:]")
		     (when (or (looking-at "\"[^\"]*\"\\|'[^']*'")
			       (looking-at "[-a-z0-9._:]+"))
		       (goto-char (match-end 0))
		       (match-string 0))))
	     attr-list)))
    attr-list))