Trouble with plugin, printing p tags and ending cdata tag
-
I have modified a plugin to render flash movies using Deconcept’s FlashObject and it is working for the most part.
The most important issue is that I have a CDATA tag whose end tag is printing the asci code, not the actual ending tag.
*Edit, the forum is printing the char code as it should, the ending > below prints as the asci code.
It is printing like this.
// <![CDATA[
// ]]>
And it should print like this
// <![CDATA[
// ]]>
The other issue is that WordPress is wrapping the entire thing in a paragraph tag. Not sure how I can fix it.
The output looks like this
<div id="videoPlayer_186" class="videoPlayer">
Flash 8 is required to view this content. <a href="https://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">Please download and install the Flash 8 plugin.</a>
</div><script type="text/javascript">
// <![CDATA[
var myVideoPlayer_186 = new FlashObject("/flash/videoPlayer.swf", "myMovie_186", "320", "280", "8", "#fafbe9");
myVideoPlayer_186.write("videoPlayer_186");
// ]]>
</script>Any help would be much appreciated.
- The topic ‘Trouble with plugin, printing p tags and ending cdata tag’ is closed to new replies.