truncate-element (npm): you can use 'truncate-element' for any framework like Vue, React, Angular or any framework based on  javascript without any worries. it is a custom element that is created based on ngx-truncate-text, which I had already created myself for angular.
Keywords: truncate text|truncate-text|shortening text|shortening-text|truncate|shortening|finding hashtag|finding-hashtag|recognize hashtag|recognize-hashtag|hashtag|mention|find mention|find-mention|highlight|highlight word|highlight-word|word coloring|word-coloring|custom element|custom-element|web component|web-component|react|angular|vue|identifying url|recongnizing url|identifying-url|recognizing-url