Mehmet Erim
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/utils/string-utils.ts
|
|
@ -23,5 +23,5 @@ export function interpolate(text: string, params: string[]) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
export function escapeHtmlChars(value: string) { |
|
|
export function escapeHtmlChars(value: string) { |
|
|
return value && value.replace(/</g, '<').replace(/>/g, '>'); |
|
|
return value && value.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"'); |
|
|
} |
|
|
} |
|
|
|