Difference between PlainText and HTMLText (General questions)

by GLlort @, (7288 days ago)

Hello again!

I continue testing wodMailBox component and I can't understand the difference between the properties HTMLText and PlainText of the Message object.

I need to get message text (without HTML tags) and I try using PlainText, but the property contains the same that contains the HTMLText... how I can get the message text without HTML tags?

Thanks again!

Gerard Llort
Offshoretech.net

locked

Re: Difference between PlainText and HTMLText

by Jasmine, (7288 days ago) @ GLlort

PlainText will not remove tags from the email, you would need to do that by yourself. PlainText will return part of the message that contains text/plain text, and HTMLText will return part of the message that contains text/html - it's that simple.

locked

Re: Difference between PlainText and HTMLText

by GLlort @, (7288 days ago) @ Jasmine

Tanks for this explanation!

Gerard

locked