Module parse_html

Source
Expand description

This module implements parsers to extract hyperlinks and image elements from HTML text input. The parsers in this module search for HTML only, no other markup languages are recognized.

Functionsยง

take_img
Consumes the input until the parser finds an HTML formatted inline image (Link::Image).
take_link
Consumes the input until the parser finds an HTML formatted inline image (Link::Image) and HTML formatted hyperlinks text2dest (Link::Text2Dest).
take_text2dest
Consumes the input until the parser finds an HTML formatted hyperlink text2dest (Link::Text2Dest).