Moved parseHtmlTag to a trait