wordpress-seo
wordpress-seo copied to clipboard
Special characters are still removed from the focus keyword.
- [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.

How can we reproduce this behavior?
- Fill in the focus keyword in the meta box
- Use a special character like ", <, ", and type anything after the special character.
- 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