<b-card>: "Tag" is displayed without escape in header, titlle and footer.
See original GitHub issueHello,
“Tag” is displayed without escape in b-card’s header, titlle and footer. “script-tag” is rejected. But “img-tag” can cause alert. Is this correct specification?
OS: macOS Mojave 10.14.1
vue: 2.5.17
nuxt: 2.3.4
bootstrap-vue: vue-2.0.0-rc.11
<template>
<b-card :header="text1"
:title="text1"
:footer="text1">
<h1>{{ text1 }}</h1>
<b-form-input v-model="text1"></b-form-input>
</b-card>
</template>
<script>
export default {
data: function() {
return {
text1: 'hoge'
}
}
}
</script>
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:14 (9 by maintainers)
Top Results From Across the Web
How to align left and right text mat-card-header in angular 4?
Save this question. Show activity on this post. I need to align the text content in the header on left and right side...
Read more >Modal | Components - BootstrapVue
When a title (or titleHtml ) is provided in the options, the header close button is not shown by default. You can enable...
Read more >Card component — Vuetify
The v-card component is a versatile component that can be used for anything from a panel to a static image. The card component...
Read more >Add the file name, date, author or other document properties ...
Note: Select Document Property to select additional information, such as Title, Company, or Subject. Select Close Header and Footer or press Esc to...
Read more >Offcanvas · Bootstrap v5.0
Below is an offcanvas example that is shown by default (via .show on .offcanvas ). Offcanvas includes support for a header with a...
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
For things like
b-form-select
,b-form-radio-group
andb-form-checkbox-group
, the option to use HTML in theoptions
array is important to many users. What we could do for those three components is default to rendering the option text as text, and then add an option to the component to enable rendering the text as html instead (i.e. anoptions-html
boolean prop).HTML tags are available for the following properties:
header
,title
,sub-title
,footer
caption
,text
text
ofoptions
array elementlabel
,description
,feedback
,valid-feedback
,invalid-feedback
~text
ofoptions
array elementprepend
,append
text
first-text
,prev-text
,ellipsis-text
,next-text
,last-text
first-text
,prev-text
,ellipsis-text
,next-text
,last-text
, return value ofpage-gen
’s functioncaption
,empty-text
,empty-filtered-text
,label
offields
array elementHTML tags are not available for the following properties:
text
placeholder
placeholder
text
ofoptions
array elementplaceholder
header
,lead
title
,ok-title
,cancel-title
title
,content
items
array elementtitle
title
I have examined all the way, but there may be some missing.