I'm trying to embed an instance of jwplayer in an entry. The embed code for that looks something like this:
<div id='my-video'></div>
<script type='text/javascript'>
jwplayer('my-video').setup({
file: 'url_to_file',
image: 'url_to_image',
width: '320',
height: '240'
});
</script>
I was just wondering if there is anyway to keep the formatting set to XHTML and still have it not convert the straight quotes between the initial set of parenthesis into entities. Here is a snippet of the problem area:
<div id='my-video'></div>
<script type='text/javascript'>jwplayer(‘my-video’).setup({…
Further Information: I'd really like to get this worked out so let me clarify a few points here to try to make everything as clear as possible.
- Only the first set of quotes inside
jwplayer('my-video')
are getting converted, all the rest of the quotes are left alone. Nothing I've tried in changing the formatting works. In auto br mode, taking out the whitespace causes it to stop being mangled. - I need to be able to add the embed code in the entry itself, not in the template code.
- I would prefer not to install an add-on to do it, but having already installed stash and allow-ee-code in the process of trying to get it worked out demonstrates that I'm willing if it is necessary.