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
8ce85c49
Commit
8ce85c49
authored
Sep 03, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace v-html with v-safe-html in simple_viewer.vue
parent
4e0d6868
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
...ipts/vue_shared/components/blob_viewers/simple_viewer.vue
+5
-3
No files found.
app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
View file @
8ce85c49
<
script
>
/* eslint-disable vue/no-v-html */
import
{
GlIcon
}
from
'
@gitlab/ui
'
;
import
{
GlIcon
,
GlSafeHtmlDirective
as
SafeHtml
}
from
'
@gitlab/ui
'
;
import
ViewerMixin
from
'
./mixins
'
;
import
{
HIGHLIGHT_CLASS_NAME
}
from
'
./constants
'
;
...
...
@@ -8,6 +7,9 @@ export default {
components
:
{
GlIcon
,
},
directives
:
{
SafeHtml
,
},
mixins
:
[
ViewerMixin
],
data
()
{
return
{
...
...
@@ -64,7 +66,7 @@ export default {
</a>
</div>
<div
class=
"blob-content"
>
<pre
class=
"code highlight"
><code
id=
"blob-code-content"
v-html=
"content"
></code></pre>
<pre
class=
"code highlight"
><code
id=
"blob-code-content"
v-
safe-
html=
"content"
></code></pre>
</div>
</div>
</
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