addition of function to escape html entities