One of our clients has lots of javascript code snippets that they would like to include in their sites, entering them via the text editor in the CMS will obviously just strip out any HTML & JS tags, and saving them as plain tetx gets them into the DB fine, but of course SS escapes it when pulling it through into the template.
So, it goes in like this:
<script type="text/javascript" src="FOO"></script>
and comes out like this:
<script type="text/javascript" src="FOO"></script><br>
we tried creating a control function in the template with just the JS URL as the dynamic content which is inserted via the CMS, but unfortunately not all of their code snippets will work that way, some have images etc and forms.
can anybody help at all with this? I'm sure there's a way I can get the data directly from the DB into the template without escaping the tags and coding.
thanks in advance.