Skip to content

Commit

Permalink
Update dependencies and escape HTML in ListItem component
Browse files Browse the repository at this point in the history
  • Loading branch information
Luen committed Feb 20, 2024
1 parent 1d75d39 commit a421e97
Show file tree
Hide file tree
Showing 3 changed files with 1,899 additions and 1,560 deletions.
3 changes: 2 additions & 1 deletion app/components/ListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Link from "next/link"
import escape from "escape-html"

type Props = {
rogaine: Rogaine
Expand All @@ -9,7 +10,7 @@ export default function ListItem({ rogaine }: Props) {

return (
<li className="mt-4 text-2xl dark:text-white/90">
<Link className="underline hover:text-black/70 dark:hover:text-white" href={`/rogaines/${id}`}>{title}</Link>
<Link className="underline hover:text-black/70 dark:hover:text-white" href={`/rogaines/${escape(id)}`}>{title}</Link>
<br />
<p className="text-sm mt-1">{coordinates}</p>
</li>
Expand Down
Loading

0 comments on commit a421e97

Please sign in to comment.