Skip to main content
The First Step
December 27, 2017
Question

Glip webhooks: Render basic HTML or strip HTML elements

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>

3 replies

Employee
December 28, 2017
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.
December 29, 2017
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.
The First Step
December 29, 2017
Freshdesk was able to help me with their syntax:
{{ ticket.description_text }}
and
{{ ticket.last_public_comment | strip_html }}