1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fix syntax error in strip_links example [ci skip]

can not use double quotes in double quoted string without escape
This commit is contained in:
yuuji.yaginuma 2015-08-23 21:07:05 +09:00
parent 55320fa9eb
commit 6e46ba397e

View file

@ -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.
```