Skip to content

Strip invalid characters from attributes when outputting. #500

@mattheu

Description

@mattheu

This is the flip side to #496 - if you've not opted in to encoding attributes, then we should prevent things just breaking.

Currently you can get into trouble if you add certain characters to your attributs. Basically anything that breaks the shortcode parsing.

Encoding is a hack to get around this - but if encoded is disabled - we should strip the following characters "'[]. There may be more too. Line breaks perhaps? This ensures people dont end up breaking things.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions