Open ellatrix opened 4 years ago
I'm seeing some issues with beautificiation (specifically single quotes rewritten as quotes) in the HTML block (reported here). Is that in any way related/addressed by this?
Edit: Ticketed the issue https://github.com/WordPress/gutenberg/issues/33813
Writing this down before I forget about it, though it's currently low priority for me. I'm curious to see if there's interest in this.
Currently we have smart quotes (and more) in WP through a PHP display filter. With the introduction of
RichText
a while ago, this feature could be improved.RichText
splits formatting from text, so it's easier and less error prone to automatically convert quotes. There are quite a fewwptexturize
bugs around converting quotes next to HTML tags. It's really hard to get right in HTML without parsing the HTML.Backspace
andEsc
mechanism. With the PHP filter, you cannot even remove a badly converted quote.wptexturize
will skip it, which means less load on the server and faster loading times.