FCKeditor is supposed to output XHTML, but it fails to wrap content of <script> and <style> tags in CDATA sections. This is how a <script> tag should be generated in XHTML:
<script type="text/javascript"> <![CDATA[ var a = "This is a line break: <br/>"; ]]> </script>