add escapeEntities option