Skip to content

Commit

Permalink
Merge pull request #439 from greenpeace/planet-5706
Browse files Browse the repository at this point in the history
PLANET-5706: Escaped html entities are displayed in the post excerpt in Articles block
  • Loading branch information
lithrel authored Nov 23, 2020
2 parents 600819f + a24a081 commit 4537018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/src/blocks/Articles/ArticlePreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class ArticlePreview extends Component {
const { isCampaign } = this.props;
const className = `tag-item tag-item--main page-type page-type-${pageType.toLowerCase().replace(' ', '_')}`;
if (isCampaign) {
return <span className={className}>{pageType}</span>;
return <span className={className}>{unescape(pageType)}</span>;
}
return <a
className={className}
Expand Down Expand Up @@ -159,7 +159,7 @@ export class ArticlePreview extends Component {

{post_excerpt &&
<p className="article-list-item-content">
{post_excerpt.replace('&hellip;', '...')}
{unescape(post_excerpt)}
</p>
}
</div>
Expand Down

0 comments on commit 4537018

Please sign in to comment.