aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-08-23 21:07:05 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2015-08-23 21:07:05 +0900
commit6e46ba397ec96a4405811ee82b4d6260007639ad (patch)
tree15f9a2955e6f6109d50f69c261dceec58febdb1e /guides
parent55320fa9eb73498e55475d187787c135613441ab (diff)
downloadrails-6e46ba397ec96a4405811ee82b4d6260007639ad.tar.gz
rails-6e46ba397ec96a4405811ee82b4d6260007639ad.tar.bz2
rails-6e46ba397ec96a4405811ee82b4d6260007639ad.zip
fix syntax error in strip_links example [ci skip]
can not use double quotes in double quoted string without escape
Diffstat (limited to 'guides')
-rw-r--r--guides/source/action_view_overview.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md
index db7eeed19a..00c41a480e 100644
--- a/guides/source/action_view_overview.md
+++ b/guides/source/action_view_overview.md
@@ -1443,12 +1443,12 @@ Sanitizes a block of CSS code.
Strips all link tags from text leaving just the link text.
```ruby
-strip_links("<a href="http://rubyonrails.org">Ruby on Rails</a>")
+strip_links('<a href="http://rubyonrails.org">Ruby on Rails</a>')
# => Ruby on Rails
```
```ruby
-strip_links("emails to <a href="mailto:me@email.com">me@email.com</a>.")
+strip_links('emails to <a href="mailto:me@email.com">me@email.com</a>.')
# => emails to me@email.com.
```