HTML to Text conversion function?

ATTENTION: This forum is no longer active. Please navigate to our new support site at https://support.starfishetl.com/
Viewing 2 posts (of 2 total)
Anosh Wadia
User - Author
Post count: 19
#1

Is there a way I can call the HTML to Plain Text function in script?

What I need to do is convert the source HTML to plain text....but only save the first 255 characters. Wasn't sure how to accomplish this.

Thanks!
Anosh

Comments (2)

Aron Hoekstra's picture Aron Hoekstra
Administrator
Post count: 2
#2

Yep try something like this:

  1. Function ScriptedField
  2. 	Dim s
  3. 	s = Origin("HTMLDATA")
  4. 	s = ConvertHTMLToText(s)
  5. 	s = Left(s, 255)
  6. 	ScriptedField = s
  7. End Function

Log in to post comments
Anosh Wadia's picture Anosh Wadia
User - Author
Post count: 19
#3

Thanks! I didn't see that in the documentation. Guess its a "hidden" feature? ;)
It works great though! Thanks for your help!

Anosh

Log in to post comments
Viewing 2 posts (of 2 total)

Forum Login

Login or sign up for our forums to connect to the user community.

Reply

You must log in to post.

Not a Member? Register.