Fix handling of tei:head, create the correct html for profile sample texts.