simplify by removing superfluous function which retrieves html content from tag