Function: eww-input-value

eww-input-value is a byte-compiled function defined in eww.el.gz.

Signature

(eww-input-value INPUT)

Source Code

;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww-input-value (input)
  (let ((type (plist-get input :type))
	(value (plist-get input :value)))
    (cond
     ((equal type "textarea")
      (with-temp-buffer
	(insert value)
	(goto-char (point-min))
	(while (re-search-forward "^ +\n\\| +$" nil t)
	  (replace-match "" t t))
	(buffer-string)))
     (t
      (if (string-match " +\\'" value)
	  (substring value 0 (match-beginning 0))
	value)))))