C
C
copyerfiled2017-09-06 12:03:11
PHP
copyerfiled, 2017-09-06 12:03:11

Is it possible to remove html tags from a bot message in slack?

Good afternoon!
There is a helpdesk (not ours) that forms a webhook.
There is a slack bot that accepts it and throws the whole thing into the chat.
But the body of the message that arrived in the chat contains html tags like

<p>
</br>

In the helpdesk web control panel, I form JSON myself using variables, but the html tags are inside the variable.
Is there any way to remove these tags, except for the option - to use an intermediate service?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Serezha, 2017-09-06
Ahen @Ahen

Do you host the bot? Regularly clean the text before sending, google "regex remove html tags".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question