I think if you just escape `|` and `\n`, then you at least won't break the table formatting. (Ref: https://confluence.atlassian.com/display/DOC/Confluence+Wiki+Markup#ConfluenceWikiMarkup-Tables)