hdoc-tools 0.17.9 → 0.17.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hdoc-module.js +5 -0
- package/package.json +5 -4
package/hdoc-module.js
CHANGED
@@ -6,6 +6,7 @@
|
|
6
6
|
cheerio = require('cheerio'),
|
7
7
|
html2text = require('html-to-text'),
|
8
8
|
https = require('https'),
|
9
|
+
htmlentities = require('html-entities'),
|
9
10
|
wordsCount = require('words-count').default;
|
10
11
|
|
11
12
|
let includesCache = {},
|
@@ -204,6 +205,9 @@
|
|
204
205
|
if (/^".*"$/.test(prop_val)) {
|
205
206
|
prop_val = prop_val.substring(1, prop_val.length - 1);
|
206
207
|
}
|
208
|
+
if (property_details[0].trim().toLowerCase() === 'title') {
|
209
|
+
prop_val = htmlentities.decode(prop_val);
|
210
|
+
}
|
207
211
|
response.fm_properties[property_details[0].trim().toLowerCase()] = prop_val;
|
208
212
|
}
|
209
213
|
}
|
@@ -214,6 +218,7 @@
|
|
214
218
|
}
|
215
219
|
});
|
216
220
|
}
|
221
|
+
|
217
222
|
return response;
|
218
223
|
};
|
219
224
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "hdoc-tools",
|
3
|
-
"version": "0.17.
|
3
|
+
"version": "0.17.11",
|
4
4
|
"description": "Hornbill HDocBook Development Support Tool",
|
5
5
|
"main": "hdoc.js",
|
6
6
|
"bin": {
|
@@ -38,13 +38,14 @@
|
|
38
38
|
"american-british-english-translator": "^0.2.1",
|
39
39
|
"axios": "^1.3.2",
|
40
40
|
"axios-retry": "^3.5.0",
|
41
|
-
"better-sqlite3": "^
|
41
|
+
"better-sqlite3": "^9.4.0",
|
42
42
|
"body-parser": "^1.20.1",
|
43
43
|
"cheerio": "^1.0.0-rc.12",
|
44
44
|
"cookie-parser": "^1.4.6",
|
45
45
|
"dree": "^3.4.2",
|
46
46
|
"express": "^4.18.2",
|
47
47
|
"fs-extra": "^11.1.0",
|
48
|
+
"html-entities": "^2.4.0",
|
48
49
|
"html-to-text": "^8.2.1",
|
49
50
|
"js-yaml": "^4.1.0",
|
50
51
|
"markdown-it": "^13.0.1",
|
@@ -53,7 +54,7 @@
|
|
53
54
|
"mime-types": "^2.1.35",
|
54
55
|
"multer": "^1.4.5-lts.1",
|
55
56
|
"prompt": "^1.3.0",
|
56
|
-
"puppeteer": "^
|
57
|
+
"puppeteer": "^20.3.0",
|
57
58
|
"retry": "^0.13.1",
|
58
59
|
"stream": "0.0.2",
|
59
60
|
"true-case-path": "^2.2.1",
|
@@ -61,4 +62,4 @@
|
|
61
62
|
"xml-formatter": "^3.6.0",
|
62
63
|
"zip-a-folder": "^1.1.5"
|
63
64
|
}
|
64
|
-
}
|
65
|
+
}
|