Permalink
Browse files

Fix syntax error in example

  • Loading branch information...
mrduncan committed Apr 16, 2011
1 parent f274394 commit b6bfcc9115df00620e155a84f80d46342c1fe7ee
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit b6bfcc9

Please sign in to comment.