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:
parent
55320fa9eb
commit
6e46ba397e
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue