Skip to content

Labels with Apostophes break Label Filtering on Issues

I have a label called Won't Fix. The label filter just shows the loading spinner, and there is a javascript error for an unescaped apostrophe.

Syntax error, unrecognized expression: input[type='hidden'][name='label_name[]'][value='Won't Fix']

Steps to Reproduce:

  1. Create a label with an apostrophe
  2. Go to /<namespace>/<project>/issues
  3. Click on Label Dropdown

Expected Results:

A filter shows for filtering labels appears.

What happened instead:

Javascript error for unescaped apostrophe.