Commits

pjenvey  committed 6ca7b46

[svn] escape doctest result string

  • Participants
  • Parent commits 8fcde53

Comments (0)

Files changed (1)

File 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)