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

Parses CSS files.

Summary

Functions

Parses CSS files.

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> )
[]