def xml.raw

gralha-xml-doc@0.1.0.1 · xml.bend:193

import gralha-xml-doc@0.1.0.1/xml.bend as Xml
import 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)

Uses (5)

Used by (1)