My current challenge involves adding a post to Wordpress using an external script. This post includes a JavaScript section that contains an iframe for displaying movies. Knowing that Wordpress splits default tags, I have implemented a special plugin to handle this. While everything functions correctly on my localhost and the posts are displayed properly (including the iframe), I encountered an issue on the server. The iframe is not being displayed, and upon investigation, I realized that the problem lies in how Wordpress renders the post's content. Here, I present two versions of the source files to better illustrate my dilemma.
Source file from my localhost, where it works well:
<script type='text/javascript'>
HDplayer_Iframe.load({
'id' : 'hdplayer-iframe',
'referrer' : '5139b992d1cb84c7130b0537586d3e8e737e2f33==',
'title' : 'Wyścig',
'image' : 'http://1.fwcdn.pl/po/82/62/628262/7577202.6.jpg?l=1382963342000',
'size' : 'small',
'style' : 'playful-dark',
'fb' : 1
});
</script>
Source file from the webserver:
<script type='text/javascript'>
HDplayer_Iframe.load({
‘id’ : ‘hdplayer-iframe',
‘referrer’ : '5139b992d1cb84c7130b0537586d3e8e737e2f33==',
‘title’ : ‘Wyścig',
‘image’ : ‘http://1.fwcdn.pl/po/82/62/628262/7577202.6.jpg?l=1382963342000',
‘size’ : ‘small',
‘style’ : ‘playful-dark',
‘fb’ : 1
});
</script>
It seems that apostrophes are getting rendered as these "‘ ’" symbols. Any help or explanation would be greatly appreciated!