aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAbdelkader Boudih <terminale@gmail.com>2015-08-23 13:13:05 +0100
committerAbdelkader Boudih <terminale@gmail.com>2015-08-23 13:13:05 +0100
commit3cbaeb16013ef488a9619dd00dd00fe49bb6994d (patch)
tree4f67cf2ef2bad51d5c2e569301e4e9a48ab06d60 /guides
parent06f071c23e3e7ac27eacaa87d7fbe207da7cb788 (diff)
parent6e46ba397ec96a4405811ee82b4d6260007639ad (diff)
downloadrails-3cbaeb16013ef488a9619dd00dd00fe49bb6994d.tar.gz
rails-3cbaeb16013ef488a9619dd00dd00fe49bb6994d.tar.bz2
rails-3cbaeb16013ef488a9619dd00dd00fe49bb6994d.zip
Merge pull request #21338 from y-yagi/fix_strip_links_example
fix syntax error in strip_links example [ci skip]
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.
```