Skip to content
This repository was archived by the owner on Apr 2, 2020. It is now read-only.
This repository was archived by the owner on Apr 2, 2020. It is now read-only.

"Escape" caption field by removing quotes from caption content. #42

@goldenapples

Description

@goldenapples

Due to known issues with WP's shortcode parser, attribute fields can't contain special characters like quote marks, square brackets, or HTML tags.

This means that the caption feature here is falling short of full feature parity with WordPress's image caption experience, which can hold quotes, tags, and special characters.

Until a solution is figured out, either in core or in Shortcake, there could be a bit of protection for users here. One possible solution is preventing quotes from being typed into these fields or transforming double quotes to single quotes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions