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
54d658f7
Commit
54d658f7
authored
Sep 21, 2021
by
imrishabh18
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor: replacing v-html with v-safe-html
parent
8abf12af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
app/assets/javascripts/snippets/components/snippet_description_view.vue
...ascripts/snippets/components/snippet_description_view.vue
+5
-1
No files found.
app/assets/javascripts/snippets/components/snippet_description_view.vue
View file @
54d658f7
<
script
>
import
{
GlSafeHTMLDirective
as
Safehtml
}
from
"
@gitlab/ui
"
;
import
MarkdownFieldView
from
'
~/vue_shared/components/markdown/field_view.vue
'
;
export
default
{
components
:
{
MarkdownFieldView
,
},
directives
:
{
Safehtml
},
props
:
{
description
:
{
type
:
String
,
...
...
@@ -18,7 +22,7 @@ export default {
<markdown-field-view
class=
"snippet-description"
data-qa-selector=
"snippet_description_content"
>
<div
class=
"md js-snippet-description"
v-
html=
"description /* eslint-disable-line vue/no-v-html */
"
v-
safe-html=
"description
"
></div>
</markdown-field-view>
</
template
>
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