text segments should be escaped, no html tags allowed