Do not convert to curly quotes when content looks like HTML

This could be improved if the future by removing the `input` event listener
completely and only relying on the formatters.
This has become very long, could it be broken into smaller functions that make it more readable?