Skip to content

Commit

Permalink
[Update] add regex to catch all <a> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeDiniz committed Apr 11, 2024
1 parent 1becde3 commit dd609ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Accordion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const Accordion: React.FC<AccordionProps> = ({ sections }) => {
<span
dangerouslySetInnerHTML={{
__html: line.replace(
'<a ',
/<a /g,
`<a style="font-size: 0.875rem; text-decoration: underline;" target="_blank" rel="noopener noreferrer" `
),
}}
Expand Down

0 comments on commit dd609ca

Please sign in to comment.