Move parseHTML to helpers.