[sourcecode] tag
-
Hello,
I have the a blog post that has [sourcecode language="php"][/sourcecode] with the following code:
function mediaplugin_filter_ism_callback($link, $autostart=false) { global $CFG; $url = $link[1]; if (empty($link[3]) or empty($link[4])) { $mpsize = ''; $size = 'width="600" height="400"'; $autosize = 'true'; } else { $size = 'width="'.$link[3].'" height="'.$link[4].'"'; $mpsize = $size; $autosize = 'false'; } $mimetype = mimeinfo('type', $url); $autostart = $autostart ? 'true' : 'false'; return $link[0]. '<span> <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" '.$size.'> <param name="source" value="'.$CFG->wwwroot.'/filter/mediaplugin/SmoothStreamingPlayer.xap"/> <!--param name="onError" value="onSilverlightError" /--> <param name="background" value="white" /> <param name="minRuntimeVersion" value="4.0.50401.0" /> <param name="autoUpgrade" value="true" /> <param name="InitParams" value="selectedcaptionstream=textstream_eng,mediaurl='.$url.'" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.50401.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/> </a> </object> </span>'; }Unfortunately, after I publish the post the php string
'<span>...</span>'gets all messed up (the content itself not just the viewing). I am using Chrome 19 but I am getting the same results with IE and Safari. Any suggestions or workarounds? I have tried escaping the<span>...</span>to no avail.Kind Regards,
DevendraThe blog I need help with is: (visible only to logged in users)
-
- The topic ‘[sourcecode] tag’ is closed to new replies.