filter dirty html only at beginning