1. Mike Orr
  2. patch-WebHelpers

Commits

pjenvey  committed f356075

[svn] more doctest escaping

  • Participants
  • Parent commits 6ca7b46
  • Branches trunk

Comments (0)

Files changed (1)

File webhelpers/rails/javascript.py

View file
  • Ignore whitespace
     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)