View Source Readability.TitleFinder (readability v0.12.1)

The TitleFinder engine traverses HTML tree searching for finding title.

Summary

Functions

Find title from og:title property of meta tag.

Find title from title tag.

Find proper title.

Types

@type html_tree() :: tuple() | list()

Functions

Link to this function

h_tag_title(html_tree, selector \\ "h1")

View Source
@spec h_tag_title(html_tree(), String.t()) :: binary()

Find title from h tag.

@spec og_title(html_tree()) :: binary()

Find title from og:title property of meta tag.

@spec tag_title(html_tree()) :: binary()

Find title from title tag.

@spec title(html_tree()) :: binary()

Find proper title.