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