Subject | Hash | Author | Date (UTC) |
---|---|---|---|
A wrapper around sanitize-html API | c4d8b6362abf63862de2464d0ea21e17880e9277 | Eyad-Syrialover | 2019-07-07 22:08:14 |
Adjusted variables names | e911804c12b5e94858bc59d69ecec70712a463a7 | Eyad-Syrialover | 2019-07-07 22:03:51 |
Added sanitize-html to sanitize output | 2a86259b6eaf9f4f676e4a90f7f056a72e165593 | Eyad-Syrialover | 2019-07-07 22:03:36 |
Configuration file for sanitize-html | 39da470b01235d566629c4d470cc53520f322044 | Eyad-Syrialover | 2019-07-07 22:02:17 |
Added proper format for the news view | 7a843b64572d5f755e355d753d553ca888c4e1ac | Eyad-Syrialover | 2019-07-07 22:01:36 |
Added sanitize-html and its dependencies | e997166eb4fe77128add450d1da96fdbc47fa578 | Eyad-Syrialover | 2019-07-07 21:44:42 |
Fixed an issue with the regular expression | 32a7baa10523df0be0393738f66876266cefc1c1 | Eyad-Syrialover | 2019-07-05 18:00:23 |
A helper that replace \r\n with <br> | dba7509cd32513e49ac6c90fd3a5819dce5cf218 | Eyad-Syrialover | 2019-07-05 17:29:40 |
A helper to view contents of links to images and youtube videos | 38da7b6bea4f60562526c9d30ca63363e1e0adbf | Eyad-Syrialover | 2019-07-05 17:29:22 |
Updated some packages to the latest version | f507f7ccde8934123d0ed354a6d93c88e4417d07 | Eyad-Syrialover | 2019-07-03 15:54:42 |
Added scripts.test to run application in test mode | f92c956735a46c547a64e91d59cd7df27201e790 | Eyad-Syrialover | 2019-07-02 23:04:35 |
Adjusted entry point from ./bin/www to app.js | 11be01b40d8113e63b4fb16b0320531fe8ad0f72 | Eyad-Syrialover | 2019-07-02 22:57:19 |
Merged www file into app.js | ce17c1cf6ed21f5f1ea2357045fcf4f4240ea3d6 | Eyad-Syrialover | 2019-07-02 22:56:48 |
Fixed db object require path | 09bf0558a2cb193919267da3523ea94445997a04 | Eyad-Syrialover | 2019-07-02 22:38:21 |
Has been moved to "general" folder | 47515fbb4da109247ad4695cf58143568c74e0af | Eyad-Syrialover | 2019-07-02 22:36:50 |
GetNewsByID will now return only one news | 79493634fe944994e43cfce1db0ea258693ad159 | Eyad-Syrialover | 2019-07-02 22:28:12 |
The router will now send the status code 404 if the supplied news id doesn't exist | 27c689c920082b6c97ce098d1774d460e87d220e | Eyad-Syrialover | 2019-07-02 22:24:09 |
Created simple news view to display content | fa1989d165eba0c2aab34880bbab34e260539999 | Eyad-Syrialover | 2019-07-02 22:19:12 |
Fixed some logical errors | 1ce43a42499dac183b5c9d61fcafeda49957a788 | Eyad-Syrialover | 2019-07-02 22:18:41 |
Changed the callback function syntax into a lambda expression | ee9932c054f23ecbff46a4922b5785ee377a5674 | Eyad-Syrialover | 2019-07-02 22:17:58 |
File | Lines added | Lines deleted |
---|---|---|
helpers/sanitize-html.js | 8 | 0 |
File helpers/sanitize-html.js added (mode: 100644) (index 0000000..f6f1bb1) | |||
1 | const sanitize_html = require("sanitize-html"); | ||
2 | const sanitize_html_config = require("../general/sanitize-html-config"); | ||
3 | |||
4 | function SanitizeHTML(text) { | ||
5 | return sanitize_html(text, sanitize_html_config); | ||
6 | } | ||
7 | |||
8 | module.exports = SanitizeHTML; |