logic for parser
Merge branch 'master' of https://github.com/juhaniniinimaa/htmlparser
parser logic