HTML to Text

I am sending a load of emails using Servoy and Amazon SES. This is not bulk emails the same but one off mails from lots of users. The emails are currently formatted in html using the Velocity Engine and I was wondering if there is a way to strip the HTML off and send it as formatted text ie I want to remove all graphics, html code etc but retain the carriage returns etc If anyone has any ideas how this could be done it would be great to hear them before I try and figure a way of doing it with search replace/reg expressions etc

Cheers
Gordon

…obviously if there is a function/plugin to do this already I am ready to look super stupid and apologies in advance :roll:

not the nicest solution, but it works:

  • create a form with a globals variable as element, element type: HTML AREA, element name: ‘myHtmlArea’
  • set the global var with the html text
  • call: forms.myGlobalVarForm.elements.myHtmlArea.getAsPlainText();

If mboegen’s method does not work for you, try the SmartDoc plugin from ServoyForge.com

Guys thanks for the responses much appreciated …
Gordon