def xml.raw
import gralha-xml-doc@0.1.0.1/xml.bend as Xmlimport Base
import gralha-text-scan@0.1.0.1/scan.bend as U
193def xml.raw(s: String) -> String:
194 match s:
195 case SNil{}: ""
196 case SCon{Chr{c}, t}:
197 +ch = c
198 U.choose(String, U32.is_eq(ch, 38), "&", SCon{Chr{ch}, ""}) ++ xml.raw(t)