Skip to content

Add plainify to Title - in internal template opengraph.html #8698

@andreseduardop

Description

@andreseduardop

Current circumstance

Inside the title parameter, defined in the Front Matter, some users can use html tags, for example <br>, <em> or <strong>.
Example of use: Tag in title.

Problem

Open Graph does not support html tags nests inside the og:title property:

og-error-in-title

Proposal

Adding plainify to clean up these tags will prevent the title from being rendered inappropriately when sharing a page on Facebook for example.

The code of the solution I suggest is in this PR: 68c69c8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions