method
links
v7.2.3 -
Show latest stable
- Class:
ActionText::Content
links()public
Extracts links from the HTML fragment:
html = '<a href="http://example.com/">Example</a>' content = ActionText::Content.new(html) content.links # => ["http://example.com/"]