From 0bb4213593160ead0e9feb5c494a9672a7be6de1 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Mon, 29 Oct 2018 14:38:19 +0100 Subject: [PATCH] remove links from post card exceprts to prevent invalid html as its already an a tag --- components/PostCard.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/PostCard.vue b/components/PostCard.vue index cf9bcdf97..9f0f4dfa3 100644 --- a/components/PostCard.vue +++ b/components/PostCard.vue @@ -9,7 +9,7 @@ style="cursor: pointer; position: relative;">
+ v-html="excerpt" /> (.+)<\/a>/gim, '') + } + }, methods: { href(post) { return this.$router.resolve({