Serialize and register text content