diff options
| author | Pierre-Marie Pédrot | 2015-07-28 15:10:35 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2015-07-28 15:11:03 +0200 |
| commit | e706bbd36237abc6c63d3e30cdaf9a42ac458215 (patch) | |
| tree | 3ad1c1161fd9e09fee79575218689af5767f56f7 /lib/xml_printer.ml | |
| parent | 01248339f4f18cc1635b591447d343a1b4565a80 (diff) | |
Fixing bug #4281: Better escaping of XML attributes.
Diffstat (limited to 'lib/xml_printer.ml')
| -rw-r--r-- | lib/xml_printer.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xml_printer.ml b/lib/xml_printer.ml index eeddd53cb8..bbb7b51ba3 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' '"' |
