added new method for getHtml in Resources