mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
regex to encode & correctly (#8441)
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
import * as path from 'vs/base/common/path';
|
import * as path from 'vs/base/common/path';
|
||||||
|
|
||||||
import { URI } from 'vs/base/common/uri';
|
import { URI } from 'vs/base/common/uri';
|
||||||
|
|
||||||
import { IMarkdownString, removeMarkdownEscapes } from 'vs/base/common/htmlContent';
|
import { IMarkdownString, removeMarkdownEscapes } from 'vs/base/common/htmlContent';
|
||||||
import { IMarkdownRenderResult } from 'vs/editor/contrib/markdown/markdownRenderer';
|
import { IMarkdownRenderResult } from 'vs/editor/contrib/markdown/markdownRenderer';
|
||||||
import * as marked from 'vs/base/common/marked/marked';
|
import * as marked from 'vs/base/common/marked/marked';
|
||||||
@@ -128,7 +127,7 @@ export class NotebookMarkdownRenderer {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
// HTML Encode href
|
// HTML Encode href
|
||||||
href = href.replace(/&/g, '&')
|
href = href.replace(/&(?!amp;)/g, '&')
|
||||||
.replace(/</g, '<')
|
.replace(/</g, '<')
|
||||||
.replace(/>/g, '>')
|
.replace(/>/g, '>')
|
||||||
.replace(/"/g, '"')
|
.replace(/"/g, '"')
|
||||||
|
|||||||
Reference in New Issue
Block a user