diff options
author | Matt Duncan <mrduncan@gmail.com> | 2011-04-15 21:50:29 -0400 |
---|---|---|
committer | Matt Duncan <mrduncan@gmail.com> | 2011-04-15 21:50:29 -0400 |
commit | b6bfcc9115df00620e155a84f80d46342c1fe7ee (patch) | |
tree | 685e5816941df3a560bfdf302b39170f64842552 /actionpack/lib | |
parent | f274394afbedd2097d5855f8c2d7d384b46977c3 (diff) | |
download | rails-b6bfcc9115df00620e155a84f80d46342c1fe7ee.tar.gz rails-b6bfcc9115df00620e155a84f80d46342c1fe7ee.tar.bz2 rails-b6bfcc9115df00620e155a84f80d46342c1fe7ee.zip |
Fix syntax error in example
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb index bdda1df437..d1c505d2b5 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -19,7 +19,7 @@ module ActionView # 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 |