decaporg/decap-cms

CollectionOverview: HTML entities (­  ) are shown

Opened this issue · 1 comments

Describe the bug

&shys are often used to help browsers hyphenate long words, when they break your CSS styles. They shouldn't be rendered in the collection overview, I believe. Since I'm not sure I'd like to ask for direction here. If you agree the titles should be rendered with dangerouslySetInnerHTML, I'm happy to make that change.

To Reproduce

  1. Create a new collection
  2. Create a collection item
  3. Use a HTML entity like ­ or   in the field that was defined as a title

Expected behavior

HTML entities should be rendered, so they aren't visible.

Screenshots

Screenshot from 2020-09-21 09-36-32

Applicable Versions:

any

Thanks for opening this @gustavpursche, it would be nice to handle this as a part of #2868 (comment).