If anyone understands:
def some_method "<script type='text/javascript'> whatever('element'); </script>" end
=>
<script type="text/javascript"> whatever(‘element’ </script>
Any idea what could create that strange behavior?
If anyone understands:
def some_method "<script type='text/javascript'> whatever('element'); </script>" end
=>
<script type="text/javascript"> whatever(‘element’ </script>
Any idea what could create that strange behavior?
Please disregard my previous message. I forgot textilize was kicking in.
Fernando Perez wrote:
Please disregard my previous message. I forgot textilize was kicking in.
Glad you found the problem. Now get your JS out of the HTML and into a separate file.
Best,