class method
self.from_html
Ruby on Rails 6.0.6
Since v6.0.6Signature
self.from_html(html)
No documentation comment.
Parameters
-
htmlreq
Source
# File actiontext/lib/action_text/fragment.rb, line 17
def from_html(html)
new(ActionText::HtmlConversion.fragment_for_html(html.to_s.strip))
end
Defined in actiontext/lib/action_text/fragment.rb line 17
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Fragment