String Replace / Regex
Here are some examples:
if you need to remove all html tags:
${esc.h}set(${esc.d}mystring = "<span>test span</span><p> test p</p>")
${esc.d}mystring.replaceAll("</?[^>]+/?>", "");
to remove, for example, only p tags
${esc.h}set(${esc.d}mystring = "<span>test span</span><p> test p</p>")
${esc.d}mystring.replaceAll("</?p[^>]*/?>", "");