aboutsummaryrefslogtreecommitdiffhomepage
path: root/generic/pg-xml.el
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2004-10-05 21:07:03 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2004-10-05 21:07:03 +0000
commit3abab315319c9265f3a848a5e431f1ac25987482 (patch)
treeda2b642fa4088f254fa29128ecafa3a35f304dc4 /generic/pg-xml.el
parent19ffded36eade405077c0e4c9e1eb61724447ba5 (diff)
Add pg-xml-cdata
Diffstat (limited to 'generic/pg-xml.el')
-rw-r--r--generic/pg-xml.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/generic/pg-xml.el b/generic/pg-xml.el
index 763638f0..d4f15df0 100644
--- a/generic/pg-xml.el
+++ b/generic/pg-xml.el
@@ -164,5 +164,9 @@ Output with indentation INDENT-STRING (or none if nil)."
(funcall outputfn "/>"))))
+(defun pg-xml-cdata (str)
+ (concat "<!\\[CDATA\\[" str "\\]"))
+
+
(provide 'pg-xml)
;; End of `pg-xml.el'