parent
e5f9272019
commit
7cf9dbecf6
|
@ -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