1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-05-26 17:32:08 +00:00

Fix a bug on regexp of a question mark

This commit is contained in:
asmsuechan
2017-03-27 03:11:14 -07:00
parent adf81175f3
commit 003d8a1b21

View File

@@ -15,7 +15,7 @@ function decodeHTMLEntities (text) {
['amp', '&'], ['amp', '&'],
['lt', '<'], ['lt', '<'],
['gt', '>'], ['gt', '>'],
['#63', '?'] ['#63', '\\?']
] ]
for (var i = 0, max = entities.length; i < max; ++i) { for (var i = 0, max = entities.length; i < max; ++i) {
@@ -31,7 +31,7 @@ function encodeHTMLEntities (text) {
['&', 'amp'], ['&', 'amp'],
['<', 'lt'], ['<', 'lt'],
['>', 'gt'], ['>', 'gt'],
['?', '#63'] ['\\?', '#63']
] ]
entities.forEach((entity) => { entities.forEach((entity) => {