/** * This will remove html tags from string in a format of * , , , ,
,
*/ export function removeHtmlTags(str: string) { if (str === null || str === '') return str; else { // removing tags for a format of // return str.replace( /(<([^>]+)>)/gi, ''); // removing specific tags const regexp = new RegExp('(?:||)', 'gi'); return str.replace(regexp, ''); } }