public/be-assets/node_modules/@yaireo/tagify/dist/tagify.esm.js
// remove any child DOM elements that aren't of type TEXT (like <br>)
remove any child DOM elements that aren't of type TEXT (like )
remove any child DOM elements that aren ' t of type TEXT ( like )
normalize(node) {
      var clone = node || this.DOM.input,
      v = []; 
      clone.childNodes.forEach(n => n.nodeType == 3 && v.push(n.nodeValue));
      v = v.join("\n");
      try {
        v = v.replace(/(?:\r\n|\r|\n)/g, this.settings.delimiters.source.charAt(0));
      } catch (err) {}
      v = v.replace(/\s/g, ' '); 
      if (this.settings.trim) v = v.replace(/^\s+/, ''); 
      return v;
    }
normalize ( node ) { var clone = node || this . DOM . input , v = [ ] ; clone . childNodes . forEach ( n => n . nodeType == 3 && v . push ( n . nodeValue ) ) ; v = v . join ( "\n" ) ; try { v = v . replace ( / (?:\r\n|\r|\n) / g , this . settings . delimiters . source . charAt ( 0 ) ) ; } catch ( err ) { } v = v . replace ( / \s / g , ' ' ) ; if ( this . settings . trim ) v = v . replace ( / ^\s+ / , '' ) ; return v ; }
remove any child DOM elements that aren't of type TEXT (like <br>)
remove any child DOM elements that aren ' t of type TEXT ( like <br > )
//.cloneNode(true), // when a text was pasted in FF, the "this.DOM.input" element will have <br> but no newline symbols (\n), and this will // result in tags not being properly created if one wishes to create a separate tag per newline. // "delimiters" might be of a non-regex value, where this will fail ("Tags With Properties" example in demo page): // replace NBSPs with spaces characters // trimLeft