escape_once

escape_once(html)
Instance Public methods

Returns an escaped version of html without affecting existing escaped entities.

1
2
3
4
5
escape_once("1 < 2 &amp; 3")
# => "1 &lt; 2 &amp; 3"
 
escape_once("&lt;&lt; Accept & Checkout")
# => "&lt;&lt; Accept &amp; Checkout"
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.