CircuitOnline/public/js/utils.js

4 lines
117 B
JavaScript

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