Skip to content

[Feature Request] Option to prevent rendering of components that are not explicitly defined #414

@toniengelhardt

Description

@toniengelhardt

It would be great to have an option, e.g. escapeHtml to ignore components that are not explicitly defined (similar to how dangerousTags are treated, except that they are rendered as plain text instead of wrapped into a pre).

This is important when using the module to format LLM streams to markdown where we want to display and not strip custom tags, e.g. <custom-tag>something</custom-tag>, should display as is and not as "something" with the tags stripped and a "component not defined" warning thrown.

IMO this should be the default behavior, but there could be an option in config to toggle between this and the current behavior.

Alternatively, there could be two settings, escapeHtml and escapeTags to distinguish between standard HTML tags and unknown tags.

Additionally, it would also be nice to be able to turn off Vue string interpolation via setting, aka. that {{ and }} are escaped so that "this is a {{ var }}" is displayed as is and not as "this is a ".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions