On the use of vue-quill-editor appears Solutions p tags

Recently wrote in his personal blog project, due to the need to publish the article, it is necessary to introduce the rich text editor, with regard to the relevant import details there are many online.

The main instructions vue-quill-editor appears when a "bug", that is, when the release of the article, the contents of the display will automatically bring a p tag .
We can see the figure

I see a lot of articles online about the solution to remove the p tag is very complex, and some even mentioned vue-quill-editor of source code, little people big head.

So since learned vue, of course, you know there is a command called v-html, through this directive, if there is text label, then you can use this tag and the same text in accordance with the ordinary html page insert, and this label will not appear in the page.

So where the introduction of v-html, the answer is where to render the article published on the plus v-html where


Thank you.

Guess you like

Origin blog.csdn.net/huangguangyourena/article/details/93843230