提交 3cbaeb16 编写于 作者: A Abdelkader Boudih

Merge pull request #21338 from y-yagi/fix_strip_links_example

fix syntax error in strip_links example [ci skip]
...@@ -1443,12 +1443,12 @@ Sanitizes a block of CSS code. ...@@ -1443,12 +1443,12 @@ Sanitizes a block of CSS code.
Strips all link tags from text leaving just the link text. Strips all link tags from text leaving just the link text.
```ruby ```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 on Rails
``` ```
```ruby ```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. # => emails to me@email.com.
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册