Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix syntax error in example

  • Loading branch information...
commit b6bfcc9115df00620e155a84f80d46342c1fe7ee 1 parent f274394
@mrduncan mrduncan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_view/helpers/text_helper.rb
View
2  actionpack/lib/action_view/helpers/text_helper.rb
@@ -19,7 +19,7 @@ module Helpers #:nodoc:
# simple_format('<a href="http://example.com/">Example</a>')
# # => "<p><a href=\"http://example.com/\">Example</a></p>"
#
- # simple_format('<a href="javascript:alert('no!')">Example</a>')
+ # simple_format('<a href="javascript:alert(\'no!\')">Example</a>')
# # => "<p><a>Example</a></p>"
#
# If you want to escape all content, you should invoke the +h+ method before
Please sign in to comment.
Something went wrong with that request. Please try again.