RTE and javascript

Hi,

I’m trying to allow editors to insert js into a RTE. I’ve followed this:
http://our.umbraco.org/wiki/how-tos/customizing-the-wysiwyg-rich-text-editor-(tinymce)/allow-any-markup-in-the-tinymce-editor

but when inserting a script-tag, for example:

<script>
$(function(){alert("hello");});
</script>

I come out like this when rendering with @Html.Raw(CurrentPage.bodyText)

<script>
// <![CDATA[
$(function(){
alert("hello");
});
// ]]

Missing a closing tag and all. What to do?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/57497-rte-and-javascript