faudrait faire un htmlentities() de ta variable, comme ca elle sera mieux interprétée par ta page.