Skip to content

Commit

Permalink
Revert "fix(plugin-form-builder): use escapeHTML on submission data i…
Browse files Browse the repository at this point in the history
…n serializeLexical" (#9805)

Reverts #8110
  • Loading branch information
DanRibbens authored Dec 6, 2024
1 parent 4892d96 commit 59ee821
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import escapeHTML from 'escape-html'

import type { HTMLConverter } from '../types'

import { replaceDoubleCurlys } from '../../replaceDoubleCurlys'
Expand All @@ -24,7 +22,7 @@ export const LinkHTMLConverter: HTMLConverter<any> = {
node.fields.linkType === 'custom' ? node.fields.url : node.fields.doc?.value?.id

if (submissionData) {
href = escapeHTML(replaceDoubleCurlys(href, submissionData))
href = replaceDoubleCurlys(href, submissionData)
}

return `<a href="${href}"${target}${rel}>${childrenText}</a>`
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import escapeHTML from 'escape-html'

import type { HTMLConverter } from '../types'

import { replaceDoubleCurlys } from '../../replaceDoubleCurlys'
Expand All @@ -10,7 +8,7 @@ export const TextHTMLConverter: HTMLConverter<any> = {
let text = node.text

if (submissionData) {
text = escapeHTML(replaceDoubleCurlys(text, submissionData))
text = replaceDoubleCurlys(text, submissionData)
}

if (node.format & NodeFormat.IS_BOLD) {
Expand Down

0 comments on commit 59ee821

Please sign in to comment.