[−][src]Function parse_hyperlinks::parser::html::html_link
pub fn html_link(i: &str) -> IResult<&str, (&str, &str, &str)>
Parse an HTML hyperlink.
The parser expects to start at the link start (<) to succeed.
use parse_hyperlinks::parser::html::html_link; assert_eq!( html_link(r#"<a href="destination" title="title">name</a>abc"#), Ok(("abc", ("name", "destination", "title"))) );
It returns either Ok((i, (link_name, link_destination, link_title))) or some error.