Add tests to verify text escaping/encoding/decoding.
Add tests to verify text escaping/encoding/decoding.

PiperOrigin-RevId: 226364759

ampproject/amppackager,ampproject/amppackager,ampproject/amppackager