I have a php script that generates krpano XML.
When generating tooltip text I have run into an issue.
Here is the relevant script snippet:
$tooltip = "Sam's"
echo " onhover=\"showtext($tooltip,ToolTip);\"\n";
I want Sam's to be the text displayed in the tooltip popup.
However, what happens is…..Output: Sam's,ToolTip
I've tested this further and it is an issue with the single-quote or apostrophe and am pretty sure it needs to be dealt with at the JavaScript level.
Anyone have any suggestions?