Skip to content

The enter_title_here and escaped HTML might display encoded characters #4933

@afercia

Description

@afercia

See #4059 / #4042

Several plugins (and themes...) use the enter_title_here filter to display their own title "placeholder" (note: in the classic editor it's actually a <label> element) for their custom post types. When the passed string contains a special character and the string gets escaped, The placeholder used in Gutenberg displays an encoded character.

For example, see in the screenshot below the "Add New Testimonial` screen from Jetpack:

screen shot 2018-02-07 at 14 59 34

Worth also noting that translations might add quotes or ampersands etc. to the original English strings.

Escaping is a good practice for HTML but an encoded character is just displayed "as is" in Gutenberg. Ideally, Gutenberg should handle these cases in some way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn issue that's suitable for someone looking to contribute for the first time[Feature] ExtensibilityThe ability to extend blocks or the editing experience[Type] BugAn existing feature does not function as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions