Ruby randomly converting quotes to html

If anyone understands:

def some_method   "<script type='text/javascript'>     whatever('element');   </script>" end

=>

<script type="text/javascript">   whatever(&#8216;element&#8217:wink: </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,