Merge pull request #236747 from mjbvz/above-asp
Fix escaping of raw values that contain `&` in md previewpull/236759/head
commit
f0923797bd
|
@ -5,7 +5,10 @@
|
|||
import * as vscode from 'vscode';
|
||||
|
||||
export function escapeAttribute(value: string | vscode.Uri): string {
|
||||
return value.toString().replace(/"/g, '"');
|
||||
return value.toString()
|
||||
.replace(/&/g, '&')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''');
|
||||
}
|
||||
|
||||
export function getNonce() {
|
||||
|
|
Loading…
Reference in New Issue