vuejs / vue-hackernews-2.0

HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering
MIT License
10.96k stars 2.15k forks source link

How to change the markup into only text? #344

Closed taikon closed 4 years ago

taikon commented 5 years ago

When I return text from a story, I get text plus some markup in between, as seen below. How do I resolve this issue? Thanks!

I thought you guys would like this.<p>I&#x27;ve mentioned it a few times in comments on HN and you**&#x27;ve provided a ton of valuable feedback.<p>

Specifically referring to the <p> and !&#x27 and etc.

daliborgogic commented 5 years ago

<div v-html="text"/>