Prevent Autolinking in Javascript Embed

Prevent Autolinking in Javascript Embed

by Jeff Ferrell -
Number of replies: 0

I'm running Moodle 2.6, and I've got some embed code that contains Javascript CDATA, a sample of which might look like this:

. . . 
<script type="text/javascript">// <![CDATA[
flashvars: {
xmlFilePath: "http://site.com/images.php?album=13",
permalinks: "On",
}
});
// ]]></script>
. . .

When I enter this in the HTML editor and save the page, the script doesn't function, because the xmlFilePath URL has been wrapped in <a> tags and converted into an actual link in the HTML.

I've got autolinking turned on for this course, and am loath to let it go. Wrapping the line in <nolink> tags makes no difference (and I wouldn't expect it to, really.)

Is there any way I can have the best of both worlds--keep autolinking on, and prevent my CDATA parameters from autolinking?

Thanks!

Average of ratings: -