Merge pull request #236747 from mjbvz/above-asp

Fix escaping of raw values that contain `&` in md preview
pull/236759/head
Matt Bierner 2024-12-20 11:07:48 -08:00 committed by GitHub
commit f0923797bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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() {