clojure.xml emit does not properly escape attribute and element content

Description

1 2 3 4 5 6 7 8 (with-out-str (clojure.xml/emit-element {:tag :e :attrs nil :content "&"})) </code></pre> produces: <e>&</e> correct would be: <e>&amp;</e> This is true for both element content and attribute content. < and > are not escaped as well. Furthermore, apostrophe ( ' ) in an attribute value leads to broken xml: <pre><code> <e a='''/>

Environment

None

Status

Assignee

Rich Hickey

Reporter

import

Labels

None

Approval

None

Patch

None

Fix versions

Priority

Configure