Some richtext processing