Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom HTML is not stripped from post title #16999

Closed
eduardozulian opened this issue Aug 9, 2021 · 1 comment
Closed

Custom HTML is not stripped from post title #16999

eduardozulian opened this issue Aug 9, 2021 · 1 comment

Comments

@eduardozulian
Copy link

It is possible to add custom HTML such as <em> or <i> to post and page titles and they will be rendered correctly when you visit the post.

Examples from WordPress.com:

Expected behavior

To have HTML tags either:

  • Transformed into the element. For example, <em>This is italic</em> shown as italic in the post list; or
  • Stripped as we see in WordPress.com:

Screen Shot on 2021-08-09 at 13:27:12

Actual behavior

We see the unstripped HTML tag in the posts list:

Steps to reproduce the behavior

  1. Start a post
  2. In its title, use some custom HTML like <em> or <i>
  3. Save the post
  4. Check the new post in the posts list
@kean
Copy link
Contributor

kean commented Oct 23, 2023

The fix will ship in 23.6. It's now consistent with the other platforms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants