Skip to content

Instantly share code, notes, and snippets.

@egorhm
egorhm / erlang-interview-question.erl
Created November 6, 2015 13:11 — forked from vlm/erlang-interview-question.erl
Erlang inteview question
%% Given the parsed HTML tree in the following format:
%%
%% Types HTML = [Element]
%% Element = {Tag, [Attribute], [Element | Text]}
%% Tag = atom() % e.g. 'a', 'pre', 'p'
%% Attribute = {Name, Value}
%% Name = atom()
%% Value = string()
%% Text = iolist()
%%