MCPcopy Create free account
hub / github.com/JFox/aws-lambda-lxml / autolink

Function autolink

3.8.0/py27/lxml/html/clean.py:546–589  ·  view source on GitHub ↗

Turn any URLs into links. It will search for links identified by the given regular expressions (by default mailto and http(s) links). It won't link text in an element in avoid_elements, or an element with a class in avoid_classes. It won't link to anything with a host tha

(el, link_regexes=_link_regexes,
             avoid_elements=_avoid_elements,
             avoid_hosts=_avoid_hosts,
             avoid_classes=_avoid_classes)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

autolink_htmlFunction · 0.70

Calls 1

_link_textFunction · 0.70

Tested by

no test coverage detected