[TASK] Check if HTML is valid and in case decode html entities