[][src]Function gen_epub_book::util::xhtml_url_id

pub fn xhtml_url_id(url: &Url) -> String

Get the (X)HTML ID from a URL.

Examples

assert_eq!(xhtml_url_id(
  &Url::parse("https://upload.wikimedia.org/2000px-Recycle_symbol_Taiwan.svg.png").unwrap()),
  "2000px-Recycle_symbol_Taiwan_svg_png");