Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
03140464
Commit
03140464
authored
Oct 14, 2021
by
Rishabh Gupta
Committed by
Ezekiel Kigbo
Oct 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in the release block component
parent
f746aadb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
app/assets/javascripts/releases/components/release_block.vue
app/assets/javascripts/releases/components/release_block.vue
+6
-4
No files found.
app/assets/javascripts/releases/components/release_block.vue
View file @
03140464
<
script
>
import
{
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
$
from
'
jquery
'
;
import
{
isEmpty
}
from
'
lodash
'
;
import
{
scrollToElement
}
from
'
~/lib/utils/common_utils
'
;
...
...
@@ -21,6 +22,9 @@ export default {
ReleaseBlockHeader
,
ReleaseBlockMilestoneInfo
,
},
directives
:
{
SafeHtml
,
},
mixins
:
[
glFeatureFlagsMixin
()],
props
:
{
release
:
{
...
...
@@ -79,6 +83,7 @@ export default {
$
(
this
.
$refs
[
'
gfm-content
'
]).
renderGFM
();
},
},
safeHtmlConfig
:
{
ADD_TAGS
:
[
'
gl-emoji
'
]
},
};
</
script
>
<
template
>
...
...
@@ -102,10 +107,7 @@ export default {
<evidence-block
v-if=
"hasEvidence"
:release=
"release"
/>
<div
ref=
"gfm-content"
class=
"card-text gl-mt-3"
>
<div
class=
"md"
v-html=
"release.descriptionHtml /* eslint-disable-line vue/no-v-html */"
></div>
<div
v-safe-html:
[$
options.safeHtmlConfig]=
"release.descriptionHtml"
class=
"md"
></div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment