/**
* 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('(?:?b>|?i>|
)', 'gi');
return str.replace(regexp, '');
}
}