Unescape user's summary in followUser slide (#7675)
This commit is contained in:
parent
79f1f5f0c8
commit
8fcec7ead4
2 changed files with 5 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { h, Component } from 'preact';
|
||||
import PropTypes from 'prop-types';
|
||||
import he from 'he';
|
||||
|
||||
import Navigation from './Navigation';
|
||||
import { getContentOfToken } from '../utilities';
|
||||
|
|
@ -169,7 +170,9 @@ class FollowUsers extends Component {
|
|||
</figure>
|
||||
<div className="user-info">
|
||||
<h4 className="user-name">{user.name}</h4>
|
||||
<p className="user-summary">{user.summary}</p>
|
||||
<p className="user-summary">
|
||||
{he.unescape(user.summary || '')}
|
||||
</p>
|
||||
</div>
|
||||
<button type="button" className="user-following-status">
|
||||
{selectedUsers.includes(user) ? 'Following' : 'Follow'}
|
||||
|
|
|
|||
|
|
@ -130,6 +130,7 @@
|
|||
"core-js": "3",
|
||||
"file-loader": "^6.0.0",
|
||||
"focus-visible": "^5.1.0",
|
||||
"he": "^1.2.0",
|
||||
"honeybadger-js": "2.2.1",
|
||||
"intersection-observer": "^0.10.0",
|
||||
"linkstate": "^1.1.1",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue