Add strip html filter
This commit is contained in:
parent
a4dcb6f548
commit
49c37d5a8e
@ -14,7 +14,7 @@
|
||||
>
|
||||
<div slot="subtitle">
|
||||
<span>{{item.recent_message.sender}}: </span>
|
||||
<span>{{item.recent_message.content}}</span>
|
||||
<span>{{item.recent_message.content | striphtml}}</span>
|
||||
</div>
|
||||
</item-list-card>
|
||||
</div>
|
||||
|
@ -60,3 +60,7 @@ Vue.directive('img-src', {
|
||||
handleImage(el, binding.value);
|
||||
}
|
||||
});
|
||||
|
||||
Vue.filter('striphtml', function (text) {
|
||||
return strip_html(text);
|
||||
});
|
Loading…
Reference in New Issue
Block a user