From ff9b935e98921ada4769a2b88993413d5fc8fc64 Mon Sep 17 00:00:00 2001 From: asmsuechan Date: Mon, 12 Jun 2017 18:01:04 +0900 Subject: [PATCH] iss #619 Add an entity to fix the rendering bug --- browser/lib/htmlTextHelper.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/browser/lib/htmlTextHelper.js b/browser/lib/htmlTextHelper.js index 49952fbd..be9968b8 100644 --- a/browser/lib/htmlTextHelper.js +++ b/browser/lib/htmlTextHelper.js @@ -13,7 +13,8 @@ export function decodeEntities (text) { ['amp', '&'], ['lt', '<'], ['gt', '>'], - ['#63', '\\?'] + ['#63', '\\?'], + ['#36', '\\$'], ] for (var i = 0, max = entities.length; i < max; ++i) { @@ -28,7 +29,8 @@ export function encodeEntities (text) { ['\'', 'apos'], ['<', 'lt'], ['>', 'gt'], - ['\\?', '#63'] + ['\\?', '#63'], + ['\\$', '#36'] ] entities.forEach((entity) => {