LPS-51734 Limit allowed content for text mode