Escaping the pipe character in a table (incoming webhook)

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|"}

Hi @SeiichiShadd - thanks for the report, I was able to reproduce this and filed a bug on it here: https://mattermost.atlassian.net/browse/PLT-5362