-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
7,968 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [licitdev] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"singleQuote": true, | ||
"useTabs": true, | ||
"printWidth": 120, | ||
"proseWrap": "always", | ||
"semi": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Directus Extension - Sanitize HTML | ||
|
||
Sanitize HTML inputs with the [sanitize-html](https://www.npmjs.com/package/sanitize-html) package. | ||
|
||
## Installation | ||
|
||
``` | ||
npm install directus-extension-sanitize-html | ||
``` | ||
|
||
## Options | ||
|
||
### Customize which event scopes to sanitize | ||
|
||
Add the `EXT_SANITIZE_HTML_EVENT_SCOPES` environment variable with the event scopes separated by commas. | ||
|
||
Defaults to running `items.create,items.update`. | ||
|
||
Example: `articles.items.create,articles.items.update` | ||
|
||
### Customize which paths to omit for sanitization | ||
|
||
Add the `EXT_SANITIZE_HTML_OMIT_PATHS` environment variable with the `<collection>.path` separated by commas. | ||
|
||
Defaults to no path to omit. | ||
|
||
Example: `articles.content,website.rawHtml` |
Oops, something went wrong.