We have a built-in function to remove HTML formatting called toText(). Here is the syntax for the built-in HTML stripper:

<t:set id="stripped" value="toText(sectionToFormat, '') />

Then, if you want to leave p and em tags in place, you can use this:

<t:set id="stripped" value="toText(sectionToFormat, 'p,em') />