Returns the xml entity corresponding to CHAR, without the leading ampersand. Returns NIL if not found.
(defun entity-of (char) "Returns the xml entity corresponding to CHAR, without the leading ampersand. Returns NIL if not found." (declare (type list *entities*)) (first (find char *entities* :test #'char= :key (lambda (e) (second e)))))Source Context