[Dillo-dev] Splitting html.cc: common functions, part 1