Skip to content

Commit

Permalink
fix(api-guides): escape <> occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardoAnjos16 committed Nov 28, 2022
1 parent e7cf028 commit 18d6b36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/replaceHTMLBlocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const selfClosingHTMLTagReplacer: (

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

0 comments on commit 18d6b36

Please sign in to comment.