mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-21 17:22:55 -05:00
Added fix to regex for string escape (#23421)
* added fix to escape switch * added fix to regex
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
* being used e.g. in HTMLElement.innerHTML.
|
||||
*/
|
||||
export function escape(html: string): string {
|
||||
return html.replace(/[<|>|&|"]/g, function (match) {
|
||||
return html.replace(/[<|>|&|"|\']/g, function (match) {
|
||||
switch (match) {
|
||||
case '<': return '<';
|
||||
case '>': return '>';
|
||||
|
||||
Reference in New Issue
Block a user