Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
09554c85
Commit
09554c85
authored
Feb 09, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: add missing html tags to whitelist
parent
4bf94a1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
renderer.js
server/modules/rendering/html-security/renderer.js
+4
-0
No files found.
server/modules/rendering/html-security/renderer.js
View file @
09554c85
...
...
@@ -9,8 +9,10 @@ module.exports = {
a
:
[
'class'
,
'id'
,
'href'
,
'style'
,
'target'
,
'title'
],
blockquote
:
[
'class'
,
'id'
,
'style'
],
code
:
[
'class'
,
'style'
],
details
:
[
'class'
,
'style'
],
div
:
[
'class'
,
'id'
,
'style'
],
em
:
[
'class'
,
'style'
],
figure
:
[
'class'
,
'style'
],
h1
:
[
'class'
,
'id'
,
'style'
],
h2
:
[
'class'
,
'id'
,
'style'
],
h3
:
[
'class'
,
'id'
,
'style'
],
...
...
@@ -25,8 +27,10 @@ module.exports = {
p
:
[
'class'
,
'style'
],
path
:
[
'd'
,
'style'
],
pre
:
[
'class'
,
'style'
],
section
:
[
'class'
,
'style'
],
span
:
[
'class'
,
'style'
],
strong
:
[
'class'
,
'style'
],
summary
:
[
'class'
,
'style'
],
svg
:
[
'width'
,
'height'
,
'viewBox'
,
'preserveAspectRatio'
,
'style'
],
table
:
[
'border'
,
'class'
,
'id'
,
'style'
,
'width'
],
tbody
:
[
'class'
,
'style'
],
...
...
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