change XHTML flag to string that can be read from options