Skip to content

[Request] Faster HTML escaping? #2885

@RunDevelopment

Description

@RunDevelopment

Right now, HTML escaping is implemented like this but there are faster methods out there. This can speed up highlighting quite a bit. I.e. Prism is about 13% faster in total with the faster escaping but Highlight.JS should make its own performance tests.

I also want to point out that this is very much a tradeoff: execution speed vs bundle size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn enhancement or new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions