Closed jdrouet closed 1 month ago
XML doesn't allow <
in attribute values.
Oh really?!
https://www.w3.org/TR/xml/#NT-AttValue
AttValue ::= '"' ([^<&"] | Reference)* '"'
Although the EntityValue production allows the definition of a general entity consisting of a single explicit < in the literal (e.g., <!ENTITY mylt "<">), it is strongly advised to avoid this practice since any reference to that entity will cause a well-formedness error.
I'm trying to parse an element attribute containing the value
<%asm_group_unsubscribe_raw_url%>
but it fails.I tried in this repository by adding
tests/integration/elements.rs
And I get the following