Page MenuHomePhabricator

Wishlist intake doesn't properly escape table syntax in the description field
Open, Needs TriagePublicBUG REPORT

Description

What is the problem?

Tables currently can't be used in the "Describe your wish" section because the pipes are reserved characters.

Steps to reproduce problem
  1. Go to create or edit a wish
  2. The following table syntax is an example, but you can also use Insert > Table from the editing toolbar:
{| class="wikitable"
|+ Caption
|-
! Heading 1
|-
| Foo
|}
  1. Save the wish

Expected behavior:

The table appears as it should after saving -- i.e. if I used VisualEditor, it should look the same as it did when I added it in VE.

Observed behavior:

Template call is broken and the table doesn't appear, and other visual errors may also occur.

Details

TitleReferenceAuthorSource BranchDest Branch
DescriptionField: escape pipes in table syntaxrepos/commtech/wishlist-intake!101musikanimalescape-pipes-in-tablesmain
Customize query in GitLab