Add strip html filter

This commit is contained in:
Suraj Shetty
2018-08-27 20:31:29 +05:30
parent a4dcb6f548
commit 49c37d5a8e
2 changed files with 5 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
> >
<div slot="subtitle"> <div slot="subtitle">
<span>{{item.recent_message.sender}}: </span> <span>{{item.recent_message.sender}}: </span>
<span>{{item.recent_message.content}}</span> <span>{{item.recent_message.content | striphtml}}</span>
</div> </div>
</item-list-card> </item-list-card>
</div> </div>

View File

@@ -60,3 +60,7 @@ Vue.directive('img-src', {
handleImage(el, binding.value); handleImage(el, binding.value);
} }
}); });
Vue.filter('striphtml', function (text) {
return strip_html(text);
});