Skip to content

HTML escaping and unescaping is slow and incomplete #14

@lpil

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

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