Skip to content

Commit

Permalink
Update BannerItem.tsx
Browse files Browse the repository at this point in the history
Strip HTML
  • Loading branch information
seelentov committed Jul 17, 2024
1 parent a32a5b6 commit 752a900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Banner/BannerItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const BannerItem: FC<Omit<IBanner, 'id'> & { pos?: 'last' | 'first' | fal
<div className={styles.item}>
<div className={styles.itemText}>
{headerType === 'h1' ? <h1 className='text-header'>{header}</h1> : <h2 className='text-header'>{header}</h2>}
<p>{description}</p>
<p>{description.replace(/(<([^>]+)>)/gi, "")}</p>
</div>
<BannerItemPreview
image={getImageFromApiObject(image)}
Expand Down

0 comments on commit 752a900

Please sign in to comment.