We write Rover IDX, a plugin to display real estate listings on WordPress sites. Agents all across the USA use the plugin, but we regularly run into a problem with curly quotes / smart quotes.
If the user (often a real estate agent) is copying a Rover shortcode to their page, that shortcode example may have parameters – [rover_idx_full_page items_per_page=”24″]. If the website or email they copied it from has curly quotes ‘on’, the agent will paste those curly quotes into the page. Most people do not notice the curly quote (the difference is subtle), and trying to explain that they need to be corrected does not go so well. These ‘texturized’ quotes really mess up the parsing of shortcode parameters.
We’ve just implemented the no_texturize_shortcodes filter – but I *think* this filter will avoid converting a double quote to a curly quote (on the page save). But if the agent pastes a curly quote – this filter does not correct it. Is my understanding correct?
Also – the shortcode parameters are parsed by WP, and sent to the plugin. So they are already messed up. Is there an elegant way to ensure the correct parsing of shortcode $atts that may have been polluted with curly quotes?
- The topic ‘no_texturize_shortcodes filter’ is closed to new replies.