Javascript strings containing HTML tags truncate code causing unterminated string literal errors

  •  04-20-2007, 9:16 AM

    Javascript strings containing HTML tags truncate code causing unterminated string literal errors

    Well, the ce_temps are finally gone, but now if you use something like this:
     
    <script>
    var myString = "my string <br> is now truncated...."
    </script>
     
    will render like this:
     
     
    <script>
    var myString = "my string <br>
     is now truncated...."
    </script>
     
    This causes unterminated string literal errors.
     
    Any suggestions?
     
    Thanks,
     
    Jamie
View Complete Thread