Display links as <a> tags but don't allow other tags? Display links as <a> tags but don't allow other tags? vue.js vue.js

Display links as <a> tags but don't allow other tags?


Use vue-linkify it create a v-linkified directive that do exactly what you need

new Vue({  el:'#app',  data:{    input:'Hello from vuejs.org'  }})
<div id="app">  <input v-model="input"/>  <div v-html="input" v-linkified>  </div></div>