1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +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', '&'],
['lt', '<'],
['gt', '>'],
['#63', '?']
['#63', '\\?']
]
for (var i = 0, max = entities.length; i < max; ++i) {
@@ -31,7 +31,7 @@ function encodeHTMLEntities (text) {
['&', 'amp'],
['<', 'lt'],
['>', 'gt'],
['?', '#63']
['\\?', '#63']
]
entities.forEach((entity) => {