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