Displaying raw HTML and non html content in same column
See original GitHub issueI wanted to display raw HTML with v-html
and normal text element in the same row. When using the template
slot it does not display the html element, when using the <span>
it only display the html.
Is there any workaround for this?
What i wanted to achieve is.
<template>
<div>
<b-table :fields="fields" :items="items">
<span slot="html" slot-scope="data" v-html="data.value"></span>
</b-table>
</div>
</template>
<script>
export default {
data() {
return {
fields: ["html"],
items: [
{
text: 'This is <i>escaped</i> content',
html: 'This is <i>notice for student</i>',
created_at: '4/30/2019'
}
]
}
}
}
</script>
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
How to display raw HTML code on an HTML page
The tried and true method for HTML: Replace the & character with &; Replace the < character with <; Replace the > character...
Read more >How do I display HTML tags as Plain Text in columns?
I am using MVC as the backend and I return a JSON result to populate the data table. I want to render the...
Read more >HTML table basics - Learn web development | MDN
This article gets you started with HTML tables, covering the very basics such as rows, cells, headings, making cells span multiple columns ......
Read more >Tables in HTML documents
The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into...
Read more >  and HTML Space Challenges and Tricks | Mailtrap Blog
or non-breaking space, is an HTML character used to create a space. ... you'll probably see a raw code displayed on the page....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Worked perfectly, learned complete new thing today. Thank you.
https://jsfiddle.net/5epw30of/