Error with CDATA in Scala

The following code breaks the Scala parser

object test {
  val html = <html><body>
    <script type="text/javascript"> <![CDATA[$(document).ready(  function(){ configurePage(); }   ); ]]> </script>
    </body>
    </html>
}




see the attached image.
It works in the Scala interpreter

Attachment(s):
IDEA CDATA ERROR.png

Please sign in to leave a comment.