class ActionText::RichText

def to_plain_text

message.content.to_plain_text # => ""
message = Message.create!(content: "<script>alert()</script>")

browsers.
NOTE: that the returned string is not HTML safe and should not be rendered in

message.content.to_plain_text # => "Funny times!"
message = Message.create!(content: "

Funny times!

")

with tags removed but HTML entities encoded.
Returns a plain-text version of the markup contained by the `body` attribute,
def to_plain_text
  body&.to_plain_text.to_s
end