class HTML::Pipeline::AutolinkFilter
- HTML::Pipeline::AutolinkFilter
- HTML::Pipeline::Filter
- Reference
- Object
Overview
Auto create link tag for all URLs.
Defined in:
html-pipeline/autolink_filter.crConstant Summary
-
AUTO_LINK_RE =
/\ (?: ([0-9A-Za-z+.:-]+:)\/\/ | www\. ) [^\s<]+ /x
-
https://github.com/tenderlove/rails_autolink/blob/master/lib/rails_autolink/helpers.rb
Instance Method Summary
-
#call
Must implement this method when you wan't write a custom filter.
Instance methods inherited from class HTML::Pipeline::Filter
call
call,
context : Hash(String, String)
context,
doc : XML::Node
doc,
html : String
html,
parse_html(html : String)
parse_html
Constructor methods inherited from class HTML::Pipeline::Filter
new(doc, context : Hash(String, String) = {"" => ""})
new
Class methods inherited from class HTML::Pipeline::Filter
call(doc, context = {"" => ""})
call
Instance Method Detail
def call
#
Description copied from class HTML::Pipeline::Filter
Must implement this method when you wan't write a custom filter.