Commits

Anonymous committed f356075

[svn] more doctest escaping

Comments (0)

Files changed (1)

webhelpers/rails/javascript.py

     Example::
     
         >>> javascript_tag("alert('All is good')")
-        '<script type="text/javascript">\\n//<![CDATA[\\nalert(\'All is good\')\\n//]]>\\n</script>'
+        '<script type="text/javascript">\\n//<![CDATA[\\nalert(\\'All is good\\')\\n//]]>\\n</script>'
     """
     return content_tag("script", javascript_cdata_section(content), type="text/javascript",
                        **html_options)