Skip to content

Commit

Permalink
fix: <TaskListItem> rendering HTML tags in name
Browse files Browse the repository at this point in the history
  • Loading branch information
flsilva committed Nov 17, 2023
1 parent 694b352 commit 4a9333e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/app/tasks/TaskListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ export const TaskListItem = ({
/>
<Link href={`/app/tasks/${id}`} className="flex grow text-left cursor">
<div className="ml-3 block">
<p className={twJoin('text-sm text-gray-800', isCompleted && 'line-through')}>{name}</p>
<div
className={twJoin('text-sm text-gray-800', isCompleted && 'line-through')}
dangerouslySetInnerHTML={{ __html: sanitize(name) }}
/>
{description && (
<div
className="mt-2 block w-[20rem] overflow-hidden text-ellipsis whitespace-nowrap text-xs text-gray-400 md:w-[26rem] lg:w-[40rem]"
Expand Down

0 comments on commit 4a9333e

Please sign in to comment.