Function: htmlize-despam-address

htmlize-despam-address is a byte-compiled function defined in htmlize.el.

Signature

(htmlize-despam-address STRING)

Documentation

Replace every occurrence of '@' in STRING with %40.

This is used to protect mailto links without modifying their meaning.

Source Code

;; Defined in ~/.emacs.d/elpa/htmlize-20250724.1703/htmlize.el
(defun htmlize-despam-address (string)
  "Replace every occurrence of '@' in STRING with %40.
This is used to protect mailto links without modifying their meaning."
  ;; Suggested by Ville Skytta.
  (while (string-match "@" string)
    (setq string (replace-match "%40" nil t string)))
  string)