Xml.xml.raw: def of gralha-xml-doc@0.1.0.1 Import: import gralha-xml-doc@0.1.0.1/xml.bend as Xml Lines 193-198 of gralha-xml-doc@0.1.0.1/xml.bend: https://jend.leeeet.dev/read.txt?path=gralha-xml-doc@0.1.0.1/xml.bend&start_line=193&end_line=198 import Base import gralha-text-scan@0.1.0.1/scan.bend as U def xml.raw(s: String) -> String: match s: case SNil{}: "" case SCon{Chr{c}, t}: +ch = c U.choose(String, U32.is_eq(ch, 38), "&", SCon{Chr{ch}, ""}) ++ xml.raw(t) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Char https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String.append https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.is_eq https://jend.leeeet.dev/definition.txt?path=gralha-text-scan@0.1.0.1/scan.bend&name=choose