Crawler.Parser.CssParser (Crawler v1.1.2) View Source

Parses CSS files.

Link to this section Summary

Functions

Parses CSS files.

Link to this section Functions

Parses CSS files.

Examples

iex> CssParser.parse(
iex>   "img { url(http://hello.world) }"
iex> )
[{"link", [{"href", "http://hello.world"}], []}]

iex> CssParser.parse(
iex>   "@font-face { src: url('icons.ttf') format('truetype'); }"
iex> )
[{"link", [{"href", "icons.ttf"}], []}]

iex> CssParser.parse(
iex>   "@font-face { src: url('data:application/blah'); }"
iex> )
[]