I have an embed code that users will use to display content hosted on my website on their own site (e.g. <iframe src="mysite/feed"></iframe>
).
I want to use clippy to allow them to copy the embed code to their clipboard but in firefox this results in the iframe actually getting embedded in the page beside the clippy icon.
My site is written in PHP and I'm also using jquery.
Is there any way of escaping the embed code so that it doesn't get embedded in my page but still copies to the clipboard correctly for the user?
Chrome is behaving correctly and not displaying the iframe, not tested in ie.