decaporg / decaporg/decap-cms

CollectionOverview: HTML entities (­  ) are shown

Open
#4,350 1 comment 0 reactions 0 assignees View on GitHub
area: ui/collection
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Describe the bug**

`­`s 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](https://user-images.githubusercontent.com/2244375/93742375-4a909900-fbee-11ea-9479-a1f7a0dfe033.png)

**Applicable Versions:**

any

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.