Skip to content

Create a TypeScript type for HTML Strings #6210

Open
@rezbyte

Description

@rezbyte

It would be ideal if we could have a special type for strings that contain HTML code to avoid accidentally passing it to functions that cannot handle it & avoid passing non-HTML strings to functions that expect HTML. For example, the htmlSanitizer or m.trust() if it's possible to override its definition.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideanotes down not immediately solvable things that don't have general buy-in yetmaintenancedependency updates, key renewals, code cleanup

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions