-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathplugin.json
29 lines (29 loc) · 1.52 KB
/
plugin.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"id": "nodebb-plugin-sanitizehtml",
"name": "SanitizeHTML",
"description": "An HTML Sanitizer parser for NodeBB",
"url": "https://github.com/akhoury/nodebb-plugin-sanitizehtml",
"library": "./index.js",
"templates": "./public/templates",
"settingsRoute": "/admin/plugins/sanitizehtml",
"staticDirs": {
"css": "public/css"
},
"hooks": [
{"hook": "static:app.load", "method": "onLoad"},
{"hook": "filter:parse.post", "method": "sanitizePost", "priority": 1},
{"hook": "filter:parse.signature", "method": "sanitizeSignature", "priority": 1},
{"hook": "filter:parse.raw", "method": "sanitizeRaw", "priority": 1},
{"hook": "filter:post.save", "method": "sanitizeSave", "priority": 1},
{"hook": "filter:composer.help", "method": "renderHelp"},
{"hook": "filter:admin.header.build", "method": "admin.menu"}
],
"faIcon": "fa-edit",
"defaultSettings": {
"allowedTags": "[ \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"blockquote\", \"p\", \"a\", \"ul\", \"ol\", \"nl\", \"li\", \"b\", \"img\", \"i\", \"strong\", \"em\", \"strike\", \"code\", \"hr\", \"br\", \"div\", \"table\", \"thead\", \"caption\", \"tbody\", \"tr\", \"th\", \"td\", \"pre\" ]",
"allowedAttributes": "{\"a\": [ \"href\", \"name\", \"target\" ], \"img\": [\"data-*\", \"src\", \"class\", \"alt\", \"title\"] }",
"selfClosing": "[ \"img\", \"br\", \"hr\", \"area\", \"base\",\"basefont\", \"input\", \"link\", \"meta\" ]",
"parseAgain": "",
"allowedIframeHostnames": "['www.youtube.com', 'player.vimeo.com']"
}
}