todo: cross-domain summary and html encoding decoding summary