double quotes added to img tag inside expand title when switching to Visual
We are using the plugin to have images be the expand trigger. For example, on a biography page, the person’s picture is the trigger. We are using the format
[expand title="<img class='bio-pic' src='image.jpg' />" rel="-highlander"]
The above works great when this is added to Text view. However, once we switch to Visual view, double-quotes are replacing the single quotes in the image tag attributes. This therefore doesn’t display the image since the plugin requires you use single quotes inside the expand code.
We have used just about all of the plugins to keep the ‘raw’ html out there that still allow the plugin shortcode to work, but while they work for not messing up any other html content, they do not prevent this issue with the quotes.
Does anyone have any suggestions on how we can prevent this from happning, aside from disabling the Visual editor?
- The topic ‘double quotes added to img tag inside expand title when switching to Visual’ is closed to new replies.