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 #15158

Closed
eduardozulian opened this issue Aug 9, 2021 · 1 comment · Fixed by #15274
Closed

Custom HTML is not stripped from post title #15158

eduardozulian opened this issue Aug 9, 2021 · 1 comment · Fixed by #15274
Assignees

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

Also reported for wordpress-mobile/WordPress-iOS#16999

@KirillPovarintsev
Copy link
Contributor

Can I have it? I've got a fix (it should address the issue in multiple places across the app).

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

Successfully merging a pull request may close this issue.

3 participants