We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b86bab commit 5f17d50Copy full SHA for 5f17d50
webview-ui/src/utils/diffUtils.ts
@@ -55,11 +55,11 @@ function isSearchReplace(s: string): boolean {
55
function stripCData(s: string): string {
56
return (
57
s
58
- // HTML-encoded CDATA open
+ // HTML-encoded CDATA open -> raw, then strip raw
59
.replace(/<!\[CDATA\[/g, "<![CDATA[")
60
- // CDATA open
61
.replace(/<!\[CDATA\[/g, "")
62
- // CDATA close (both encoded and raw)
+ // HTML-encoded CDATA close -> raw, then strip raw
+ .replace(/\]\]>/g, "]]>")
63
.replace(/\]\]>/g, "")
64
)
65
}
0 commit comments