class Rails::HTML5::LinkSanitizer


# => “Only the link text will be kept.”
link_sanitizer.sanitize(‘<a href=“example.com”>Only the link text will be kept.</a>’)
link_sanitizer = Rails::HTML5::LinkSanitizer.new
Removes a tags and href attributes from HTML5 leaving only the link text.
== Rails::HTML5::LinkSanitizer