Html.escape.onto: def of emerging-ezhttp@0.21.0.0
Import: import emerging-ezhttp@0.21.0.0/src/html.bend as Html
Lines 51-57 of emerging-ezhttp@0.21.0.0/src/html.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/html.bend&start_line=51&end_line=57
import Base
# a string escaped, each character in turn, followed by `rest`
def escape.onto(s: String, rest: String) -> String:
match s:
case SNil{}:
rest
case SCon{+c, tail}:
one(c, escape.onto(tail, rest))
Uses (2):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String
https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/html.bend&name=one