[Text] Add utils to encode content for HTML/XML

Change-Id: Ib2c00e6672176aa16f8cb04e64a21049534722a5
3 files changed