Skip to main content

Hi,


We're bout to switch to Glip, and one of our use cases is for incoming messages posted via Webhook. Unfortunately, our service desk provider doesn't strip HTML from the description, so when we include the body a lot of HTML gets posted along with it, making it unreadable.


The service desk in question is Freshdesk.


Can there be a flag introduced to "strip_html or "render_basic_html" ? Elements include, with some styling:

  • <br>
  • <div>
  • <a>
  • <span>
  • <table>
  • <td>
  • <tr>

HTML text rendering is not supported. Because all html tags are escaped before rendering.

You can convert the HTML to glipdown format before posting it to Glip.
Who is the service desk provider?

To modify the webhook message, you can create a simple proxy to receive the message, modify it, and forward it to Glip. You would use your proxy's URL with the provider. I have some example code here:

https://github.com/grokify/webhookproxy

If the service desk provider has a free account program, I could look into whipping up a converter for the webhookproxy app.
Freshdesk was able to help me with their syntax:
{{ ticket.description_text }}
and
{{ ticket.last_public_comment | strip_html }}


Reply