<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: JSON breaks RJS page.replace_html when it is used w/partial</title><link>https://sourceforge.net/p/json/bugs/2/</link><description>Recent changes to 2: JSON breaks RJS page.replace_html when it is used w/partial</description><atom:link href="https://sourceforge.net/p/json/bugs/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 16 Nov 2006 16:40:47 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/json/bugs/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>JSON breaks RJS page.replace_html when it is used w/partial</title><link>https://sourceforge.net/p/json/bugs/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When this library is included, it causes erroneous escaping of \n characters in javascript that is returned by RJS.&lt;br /&gt;
Example:&lt;br /&gt;
RJS file:&lt;br /&gt;
page.replace_html 'target', :partial =&amp;gt; 'target'&lt;/p&gt;
&lt;p&gt;RHTML partial:&lt;br /&gt;
some text&lt;br /&gt;
more text&lt;/p&gt;
&lt;p&gt;RJS is returned as :&lt;br /&gt;
Element.update('target', 'some text \\n more text')&lt;/p&gt;
&lt;p&gt;Should be:&lt;br /&gt;
Element.update('target', 'some text \n more text')&lt;/p&gt;
&lt;p&gt;So the end result is that \n's are rendered as visible text into the webpage, instead of being just formatting of the source html.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anton</dc:creator><pubDate>Thu, 16 Nov 2006 16:40:47 -0000</pubDate><guid>https://sourceforge.net598a188e1521ed2c5ab758ae52ae73f1b73a964f</guid></item></channel></rss>