1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

iss #619 Add an entity to fix the rendering bug

This commit is contained in:
asmsuechan
2017-06-12 18:01:04 +09:00
parent 48ca13f82c
commit ff9b935e98

View File

@@ -13,7 +13,8 @@ export function decodeEntities (text) {
['amp', '&'], ['amp', '&'],
['lt', '<'], ['lt', '<'],
['gt', '>'], ['gt', '>'],
['#63', '\\?'] ['#63', '\\?'],
['#36', '\\$'],
] ]
for (var i = 0, max = entities.length; i < max; ++i) { for (var i = 0, max = entities.length; i < max; ++i) {
@@ -28,7 +29,8 @@ export function encodeEntities (text) {
['\'', 'apos'], ['\'', 'apos'],
['<', 'lt'], ['<', 'lt'],
['>', 'gt'], ['>', 'gt'],
['\\?', '#63'] ['\\?', '#63'],
['\\$', '#36']
] ]
entities.forEach((entity) => { entities.forEach((entity) => {