Function: cal-html-htmlify-string

cal-html-htmlify-string is a byte-compiled function defined in cal-html.el.gz.

Signature

(cal-html-htmlify-string STRING)

Documentation

Protect special characters in STRING from HTML.

Characters are replaced according to cal-html-html-subst-list.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/cal-html.el.gz
;;------------------------------------------------------------
;; HTMLify
;;------------------------------------------------------------

(defun cal-html-htmlify-string (string)
  "Protect special characters in STRING from HTML.
Characters are replaced according to `cal-html-html-subst-list'."
  (if (stringp string)
      (replace-regexp-in-string
       (regexp-opt (mapcar 'car cal-html-html-subst-list))
       (lambda (x)
         (cdr (assoc x cal-html-html-subst-list)))
       string)
    ""))