XHTML script blocks help required
-
I’m in the process of finishing of a plugin which injects some javascript into the content, to be XHTML complient i am using the format –
<script language=”JavaScript” type=”text/javascript”>
// <![CDATA[
somefunction();
// ]]>
</script>however the template-functions-post.php file line 57 –
$content = str_replace(‘]]>’, ‘]]>’, $content);
Which replaces the end comment within each script blocks!
I have tried adding the filter with a high number for the priority (so its executed last) but i take it the function that invalidates my code is called after the filters are applied.
Other than commenting out this line, is there anything i can do to stop this happening?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘XHTML script blocks help required’ is closed to new replies.