···11@target(javascript)
22-import houdini/internal/escape_generic as escape
22+import houdini/internal/escape_js as escape
3344@target(erlang)
55import houdini/internal/escape_erl as escape
···11-import gleam/string
22-11+@target(javascript)
32/// This `escape` function will work on all targets, beware that the version
43/// specifically optimised for Erlang will be _way faster_ than this one when
54/// running on the BEAM. That's why this fallback implementation is only ever
···98 do_escape(text)
109}
11101111+@target(javascript)
1212@external(javascript, "../../houdini.ffi.mjs", "do_escape")
1313-fn do_escape(text: String) -> String {
1414- text
1515- |> string.replace(">", ">")
1616- |> string.replace("<", "<")
1717- |> string.replace("&", "&")
1818- |> string.replace("'", "'")
1919- |> string.replace("\"", """)
2020-}
1313+fn do_escape(_text: String) -> String