-module(html_dsl@utils@check). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]). -export([illegal_string_check/1]). -spec illegal_string_check(binary()) -> binary(). illegal_string_check(Str) -> _pipe = gleam@string:split(Str, <<""/utf8>>), _pipe@1 = gleam@list:map(_pipe, fun(Str@1) -> case Str@1 of <<">"/utf8>> -> <<">"/utf8>>; <<"<"/utf8>> -> <<"<"/utf8>>; <<"&"/utf8>> -> <<"&"/utf8>>; <<"\\"/utf8>> -> <<"\"/utf8>>; <<"'"/utf8>> -> <<"'"/utf8>>; <<"\""/utf8>> -> <<"""/utf8>>; _ -> Str@1 end end), gleam@string:join(_pipe@1, <<""/utf8>>).