var myDesc = '<?php the_excerpt_rss(); ?>';
the problem is that the output of the_excerpt_rss() has a carriage return in it (\n) which outputs this to the browser
var myDesc = 'my value breks js';
which obviously breaks the JS code. How do I get around this issue? I tried wrapping it with str_replace() to get rid of the \n, but that didn't work. any help is appreciated.