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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user