Skip to content

Commit

Permalink
fix(api-guides): replace all occurrences of br HTML tags with JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoAnjos16 committed Nov 28, 2022
1 parent baebbbc commit 6544bb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/replaceHTMLBlocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const selfClosingHTMLTagReplacer: (

const replaceHTMLBlocks: (content: string) => string = (content) => {
return content
.replace('<br>', '<br />')
.replace(/<br>/g, '<br />')
.replace(/<!--.*?-->/gs, '')
.replace(HTMLBlockRegex, HTMLBlockReplacer)
.replace(selfClosingHTMLTagRegex, selfClosingHTMLTagReplacer)
Expand Down

0 comments on commit 6544bb3

Please sign in to comment.