added feature to handle raw html data