Added the ability to have either an HTML title or text title