remove the closing PH tag