I have some HTML content that I want to display using the v-html
directive. The text is quite lengthy, so I am looking to add a clickable Read more
link that appears on the same line as the text.
The code structure would look like this:
<div v-html="some-variable-containing-html"></div>
<a @click="makeMoreTextVisible()">Read more</a>
Typically, I would use display:inline
to ensure the Read more
link aligns with the end of the HTML text, but it doesn't seem to work in this case.
Has anyone encountered this issue before?