Hi ,
I have a requirement in which I have to remove html tags from input message.
My input format is attached in file input.txt is like that
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
I want output like this.
Hi
I tried to contact you again at the phone number but it's still not going through. Since I haven't heard from you yet I will assume your concern has been resolved with the development team and close your request within 24 hours accordingly.Looking forward to your replyThank you
euwruiou
Office 365 Support
Can anyone help me to resolve this issue?
Thanks
Ajay Tiwari
@ajaytiwa12tiwa12
I think the best way to extract text from html would be to use Jsoup library.
<set-payload value="# [org.jsoup.JSoup.parse(message.payloadAs(java.lang.String)).text()]" doc:name="Set Payload"/>
Check the API Specification - jsoup.parse and text()