jinjor / elm-xml-parser

XML parser for Elm
http://package.elm-lang.org/packages/jinjor/elm-xml-parser/latest
BSD 3-Clause "New" or "Revised" License
21 stars 10 forks source link

formatでProcessingInstructionのvalueをescapeしてしまっていている #7

Open narumincho opened 5 years ago

narumincho commented 5 years ago
"""<?xml-stylesheet type="text/xsl" href="style.xsl"?><node />"""
    |> XmlParser.parse
    |> Result.map XmlParser.format

Ok ("<?xml-stylesheet type="text/xsl" href="style.xsl"?><node />")

ではなく

Ok ("<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;style.xsl&quot;?><node />")

になってしまっている

uweg commented 4 years ago

Second this. Processing instructions are not serialized correctly. (At least, I think this issue is about this 😉)