Crawler v1.1.1 Crawler.Parser.CssParser
Parses CSS files.
Link to this section Summary
Functions
Parses CSS files.
Link to this section Functions
Link to this function
parse(body)
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:applicatin/blah'); }"
iex> )
[]