.emacs-my
changeset 1539 14739033d89f
parent 1538 35dbe903d7e0
child 1540 e3000459f683
equal deleted inserted replaced
1538:35dbe903d7e0 1539:14739033d89f
  3331   (interactive "r")
  3331   (interactive "r")
  3332   (save-excursion
  3332   (save-excursion
  3333     (save-restriction
  3333     (save-restriction
  3334       (narrow-to-region start end)
  3334       (narrow-to-region start end)
  3335       (goto-char (point-min))
  3335       (goto-char (point-min))
  3336       (while (search-forward "&") (replace-match "&"))
  3336       (while (search-forward "&" nil t) (replace-match "&"))
  3337       (goto-char (point-min))
  3337       (goto-char (point-min))
  3338       (while (search-forward "<") (replace-match "&lt;"))
  3338       (while (search-forward "<" nil t) (replace-match "&lt;"))
  3339       (goto-char (point-min))
  3339       (goto-char (point-min))
  3340       (while (search-forward ">") (replace-match "&gt;"))
  3340       (while (search-forward ">" nil t) (replace-match "&gt;"))
  3341       )))
  3341       )))
  3342 
  3342 
  3343 (defun my-html-charref-from-char (char)
  3343 (defun my-html-charref-from-char (char)
  3344   (format "&#%d;" char)
  3344   (format "&#%d;" char)
  3345   )
  3345   )