Work with text instead of HTML to avoid invalid characters.