remove invalid markup sequence