Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Escaping the pipe character in a table (incoming webhook)

$
0
0

Summary

Unable to display the pipe character in a table

Steps to reproduce

Have a pipe character as part of some text in a table, and send it in the JSON payload to the incoming webhook. Also tried escaping the pipe character.

Expected behavior

Have the pipe character display alongside text in any given cell

Observed behavior

A new cell is created and everything is shifted over when a pipe character is present in the text

When attempting to escape the pipe character with '\', the escape character is not displayed, and the above behavior is observed.
Exact payload:
{"text" : "Pipe test:
|Test1|Test2|
|:--|:--|
|This text has | in it|Oh boy|"}

When attempting to escape the escape character (), the following error is observed and nothing is outputted to the channel:
{"id":"web.incoming_webhook.parse.app_error","message":"Unable to parse incoming data","detailed_error":"","request_id":"yc39wf6ehtrpffn1wp4nguyqfr","status_code":500}
Exact payload:
{"text" : "Pipe test:

|Test1|Test2|
|:--|:--|
|This text has \| in it|Oh boy|"}

Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>