4 lines
117 B
JavaScript
4 lines
117 B
JavaScript
// To strip tags from input
|
|
function stripTags(string="") {
|
|
return string.replace(/(<([^>]+)>)/ig, '').trim();
|
|
}
|