HelpSpot Help Desk Software | HelpSpot Blog | HelpSpot Support

Email Parser - HTML Comments?


#1

Does the Email parser read HTML comments?

I want the tags to be hidden.


#2

Huh, yes I believe that would work fine. I don’t see any reason why it wouldn’t. Interesting idea.

Let us know if you have any trouble.


#3

It’s working fine with a div, but when I switch it to a comment (), it doesn’t work.

Can you look into this?


#4

Yes, the cleaner strips out comments before the tags are parsed so that won’t work. I had success with a hidden div though:

##hs_customer_firstname:XXXXXX##

Should work OK in all but the oldest mail clients and in those they’ll just see the tag so not too bad. If you need complete control you can also look at using the web service api.


#5

Yeah, that’s what I’m doing. Can you add this to the feature requests?


#6

We’ll certainly take a look at it. It’s tricky because we need to clean the emails before we let them through and there’s no real reason to leave a comment in there. We’ll take a look though, perhaps instead setting a header with the info, that would be much cleaner so we’ll have to look at that.