this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

remove unused buggy code

+4 -11
+1 -1
src/houdini.gleam
··· 1 1 @target(javascript) 2 - import houdini/internal/escape_generic as escape 2 + import houdini/internal/escape_js as escape 3 3 4 4 @target(erlang) 5 5 import houdini/internal/escape_erl as escape
+3 -10
src/houdini/internal/escape_generic.gleam src/houdini/internal/escape_js.gleam
··· 1 - import gleam/string 2 - 1 + @target(javascript) 3 2 /// This `escape` function will work on all targets, beware that the version 4 3 /// specifically optimised for Erlang will be _way faster_ than this one when 5 4 /// running on the BEAM. That's why this fallback implementation is only ever ··· 9 8 do_escape(text) 10 9 } 11 10 11 + @target(javascript) 12 12 @external(javascript, "../../houdini.ffi.mjs", "do_escape") 13 - fn do_escape(text: String) -> String { 14 - text 15 - |> string.replace(">", "&gt;") 16 - |> string.replace("<", "&lt;") 17 - |> string.replace("&", "&amp;") 18 - |> string.replace("'", "&#39;") 19 - |> string.replace("\"", "&quot;") 20 - } 13 + fn do_escape(_text: String) -> String