wordpress-seo icon indicating copy to clipboard operation
wordpress-seo copied to clipboard

Special characters are still removed from the focus keyword.

Open martijnvaneeghem opened this issue 8 years ago • 0 comments

  • [x] I've read and understood the contribution guidelines.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Please give us a description of what happened.

I've tested https://github.com/Yoast/wordpress-seo/pull/9415. However, all special characters mentioned in the original issue are still being removed on save. Also, anything typed after a special character is (partially) removed on save.

Please describe what you expected to happen and why.

I expected the characters to remain in the focus keyword field. Also, I expected the non-special characters to not be removed.

poging_6

How can we reproduce this behavior?

  1. Fill in the focus keyword in the meta box
  2. Use a special character like ", <, &quot, and type anything after the special character.
  3. See that the special character, as well as (a part of) the focus keyword after the special character is removed on save.

Technical info

  • WordPress version: 4.9.5
  • Yoast SEO version: 7.4 RC2
  • Relevant plugins in case of a bug: none
  • Tested with theme: twenty seventeen

martijnvaneeghem avatar Apr 25 '18 12:04 martijnvaneeghem