diff --git a/src/Html.roc b/src/Html.roc index 4abf01e..b11da40 100644 --- a/src/Html.roc +++ b/src/Html.roc @@ -153,8 +153,8 @@ text : Str -> Node text = Text expect - textNode = Html.text "" - Html.renderWithoutDocType textNode == "<script>alert('hi')</script>" + textNode = text "" + renderWithoutDocType textNode == "<script>alert('hi')</script>" ## Mark a string as safe for HTML without actually escaping it. ## @@ -171,8 +171,8 @@ dangerouslyIncludeUnescapedHtml : Str -> Node dangerouslyIncludeUnescapedHtml = UnescapedHtml expect - htmlNode = Html.dangerouslyIncludeUnescapedHtml "" - Html.renderWithoutDocType htmlNode == "" + htmlNode = dangerouslyIncludeUnescapedHtml "" + renderWithoutDocType htmlNode == "" ## Define a non-standard HTML Element. ## You can use this to add elements that are not already supported.