aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/xml.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/xml.el')
-rw-r--r--lisp/xml.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/xml.el b/lisp/xml.el
index f5a9a3f8f0b..7a853d98cc6 100644
--- a/lisp/xml.el
+++ b/lisp/xml.el
@@ -126,9 +126,9 @@ tag. For example,
126 126
127would be represented by 127would be represented by
128 128
129 '(\"\" . \"foo\"). 129 (\"\" . \"foo\").
130 130
131If you'd just like a plain symbol instead, use 'symbol-qnames in 131If you'd just like a plain symbol instead, use `symbol-qnames' in
132the PARSE-NS argument." 132the PARSE-NS argument."
133 133
134 (car node)) 134 (car node))
@@ -1010,12 +1010,12 @@ The first line is indented with the optional INDENT-STRING."
1010 1010
1011(defun xml-escape-string (string) 1011(defun xml-escape-string (string)
1012 "Convert STRING into a string containing valid XML character data. 1012 "Convert STRING into a string containing valid XML character data.
1013Replace occurrences of &<>'\" in STRING with their default XML 1013Replace occurrences of &<>\\='\" in STRING with their default XML
1014entity references (e.g. replace each & with &amp;). 1014entity references (e.g., replace each & with &amp;).
1015 1015
1016XML character data must not contain & or < characters, nor the > 1016XML character data must not contain & or < characters, nor the >
1017character under some circumstances. The XML spec does not impose 1017character under some circumstances. The XML spec does not impose
1018restriction on \" or ', but we just substitute for these too 1018restriction on \" or \\=', but we just substitute for these too
1019\(as is permitted by the spec)." 1019\(as is permitted by the spec)."
1020 (with-temp-buffer 1020 (with-temp-buffer
1021 (insert string) 1021 (insert string)