AztecEditor-iOS
AztecEditor-iOS copied to clipboard
HTML mode: Map zero-width characters to their entity codes.
This issue was spawned from the discussion here.
We should make sure that whenever the user switches to HTML mode, any zero-width character is converted to its entity code ().
This is because the character is invisible, so adding the code lets the user clearly see that it's there.
Here are some other zero-width characters listed on Wikipedia:
- U+180E mongolian vowel separator
- U+200B zero width space -
​ - U+200C zero width non-joiner -
‌ - U+200D zero width joiner -
‍ - U+2060 word joiner -
⁠
Updated the title and description to apply to all zero-width characters.
U+200D is tricky, as it's commonly used to combine emoji. 👨❤️💋👨 will appear as 👨‍❤️‍💋‍👨