]> git.eshelyaron.com Git - emacs.git/commitdiff
; (dom-print): Use HTML entities for reserved characters.
authorEshel Yaron <me@eshelyaron.com>
Fri, 5 Jan 2024 15:40:44 +0000 (16:40 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 5 Jan 2024 15:42:27 +0000 (16:42 +0100)
lisp/dom.el

index f7043ba825220feb2ac6fd330265917f7ec9058d..b329379fdc34cc70b7337a7554264c2e16ebe129 100644 (file)
@@ -288,7 +288,7 @@ If XML, generate XML instead of HTML."
        (insert ">")
         (dolist (child children)
          (if (stringp child)
-             (insert child)
+             (insert (url-insert-entities-in-string child))
            (setq non-text t)
            (when pretty
               (insert "\n" (make-string (+ column 2) ?\s)))