src.app.shared.tools.string-utils.ts Maven / Gradle / Ivy
export function isNullOrEmptyString(text: string) {
return text == null || text.length === 0;
}
export function isNullOrBlankString(text: string) {
return text == null || text.trim().length === 0;
}
export function escapeHtml(text: string): string {
return text
.replace(/&/g, '&')
.replace(//g, '>')
.replace(/"/g, '"')
.replace(/'/g, ''');
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy