method

escape_once

rails latest stable - Class: ActionView

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

escape_once(html)
public

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

escape_once("1 < 2 & 3")
# => "1 < 2 & 3"

escape_once("<< Accept & Checkout")
# => "<< Accept & Checkout"