...
alle html tags (<…> en </…>)
in typescript/javascript code:
.replace(/<[^>]*>/g, '')
alle
tags (non breaking space)in typescript/javascript code:
.replace(/ /g, ' ')
alle
­
tags (koppelteken)in typescript/javascript code:
.replace(/­/g, '')
Code voorbeeld
Code Block |
---|
export function removeHtmlTags(value: string) {
return value.replace(/<[^>]*>/g, '')
.replace(/ /g, ' ')
.replace(/­/g, '');
} |