Nested Tooltips & Single Quotes
-
I’ve found that in some cases you end up getting nested tooltips (when tooltips are present inside the tooltip text).
In these cases, the double-quotes around the tooltip <span> giving the class for the tooltip are converted into single quotes, which then breaks the Javascript string.
The easiest solution for me is to simply replace the singe quotes outside the $m_content to backticks (`), which appears to work pretty well.The other – probably better – option would be to not replace double-quotes with single-quotes when they are found inside an HTML tag.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nested Tooltips & Single Quotes’ is closed to new replies.