Helper for processing raw html