I am reading in content in markdown, convert to HTML, then need to pass that with HTTP request to an API (mautic).
If I pass the full HTML through the JSON to the API, the request fails, presumably because of the “quotes”. If I encode the HTML, it works and is received correctly by the API.
So my question is: How do I encode this HTML programmatically?
Thanks in advance!