Skip to content

Commit

Permalink
html in lesson name
Browse files Browse the repository at this point in the history
  • Loading branch information
hj940709 committed Dec 5, 2024
1 parent 55e65db commit 7de703c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/components/Lessons/LessonLibrary/LessonListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,8 @@ const LessonTitle = ({ lesson, selected, disabled, toggleTopic, includeLesson, e
<h5
className="story-item-title"
style={{ marginBottom: '.5rem', ...getTextStyle(learningLanguage) }}
>
{`${lesson.name.split('—')[0].trim()}`}
{/* {`${intl.formatMessage({ id: 'topic-singular' })} ${lesson.topic_id}`} */}
</h5>
dangerouslySetInnerHTML={{ __html: lesson.name.split('—')[0].trim() }}
/>
</div>
<Card.Content extra className="lesson-card-actions-cont">
<div className="lesson-actions">
Expand Down Expand Up @@ -194,7 +192,7 @@ const LessonTitle = ({ lesson, selected, disabled, toggleTopic, includeLesson, e
}}
>
<Icon color="grey" name="ellipsis vertical" className="lesson-item-dots" />
{`${lesson.name.split('—')[0].trim()}`}
<span dangerouslySetInnerHTML={{ __html: lesson.name.split('—')[0].trim() }} />
{/* {`${intl.formatMessage({ id: 'topic-singular' })} ${lesson.topic_id}`} */}
</h5>
</div>
Expand Down

0 comments on commit 7de703c

Please sign in to comment.