Get Note as string and not HTML



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:


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).