From 2280477a96e19ba5060de2d48dcc8fd7c8079d22 Mon Sep 17 00:00:00 2001 From: Enrico Tassi Date: Fri, 13 Nov 2015 11:31:34 +0100 Subject: Imported Upstream version 8.5~beta3+dfsg --- lib/xml_printer.ml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/xml_printer.ml') diff --git a/lib/xml_printer.ml b/lib/xml_printer.ml index eeddd53c..bbb7b51b 100644 --- a/lib/xml_printer.ml +++ b/lib/xml_printer.ml @@ -46,6 +46,8 @@ let buffer_attr tmp (n,v) = match v.[p] with | '\\' -> output "\\\\" | '"' -> output "\\\"" + | '<' -> output "<" + | '&' -> output "&" | c -> output' c done; output' '"' -- cgit v1.2.3