method

to_plain_text

Importance_1
v7.1.3.4 - Show latest stable - 0 notes - Class: Content
to_plain_text() public

Returns the content as plain text with all HTML tags removed.

content = ActionText::Content.new("<h1>Funny times!</h1>")
content.to_plain_text # => "Funny times!"
Show source
Register or log in to add new notes.