two functions for escaped content and system content