Skip to content

HTML escaping and unescaping is slow and incomplete #14

Description

@lpil

Hello!

The escaping and unescaping functions use string.replace, but that's unfortunately slow as it'll make a full copy of the entire string for each call to the replace function.

The unescape function is also somewhat incomplete as it only unescapes some HTML entities, the majority of them being left as-is.

Perhaps you could depend on the established libraries for escaping and unescaping HTML in Gleam?

Cheers,
Louis

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions