tali713 / esxml

An elisp library for working with xml, esxml and sxml.
58 stars 14 forks source link

Preserve `raw-string` in `sxml-to-esxml` #37

Closed toyboot4e closed 2 years ago

toyboot4e commented 2 years ago

Hi :wave: I'm back..

So here's the real issue:

(sxml-to-xml '(*RAW-STRING* "<br>"))
;; => "br"

(sxml-to-xml '(raw-string "<br>"))
;; => "<raw-string>&lt;br&gt;</raw-string>"

The fix would be preserving the raw-string expression just like done with *RAW-STRING*.

wasamasa commented 2 years ago

This is intentional. With Scheme/SXML special directives are allcaps and have earmuffs. See at http://practical-scheme.net/gauche/man/gauche-refe/Functional-XML-parser.html#Functional-XML-parser for the actual syntax.