In Magento 1, if you wanted to transform an arbitrary block of text, the same as the body of a CMS page or block might be changed, you could use the following model class
This object was also available via the CMS data helper's
In Magento 2, there is no CMS data helper object. There is also no CMS template object.
In Magento 2, if I want to transform an arbitrary string as through it were a CMS page or CMS block, how would I do that?