APIs & Integrations

Not applicable

Get Note as string and not HTML

Hey,

I am looking for a way to fetch Notes using the HubSpot API and get the result as plain text.
I have read the docs and successfully got the response, but it was in HTML format:

<p> my <bold>Note</bold></p>

I am looking for a way to get just the text (I do not mind losing the styling):

my Note

Any help will be appreciated :slight_smile:

0 Upvotes
1 Reply 1
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

Get Note as string and not HTML

Hi @itai,

The engagements API doesn’t parse out any HTML tags from the note body; any tags/style that are present in the note will be returned in the response. It’s possible to strip the HTML from response using a library/tool (like the striptags NPM module, for example).

0 Upvotes