diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-05-07 09:30:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-07 09:30:38 +0200 |
commit | d185f3ddafc941e280de7efc6d448449ab5ce2c9 (patch) | |
tree | 1d3ee8ab74251168e98dccd7d232ed8c1a364e82 /app/javascript/mastodon/actions/importer/normalizer.js | |
parent | db012b57c2c3e65cfbd7d9b51e0c3081ed883400 (diff) |
Use plaintext value for field value tooltips in web UI (#7388)
Fix #7383
Diffstat (limited to 'app/javascript/mastodon/actions/importer/normalizer.js')
-rw-r--r-- | app/javascript/mastodon/actions/importer/normalizer.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/actions/importer/normalizer.js b/app/javascript/mastodon/actions/importer/normalizer.js index 057bff58b..c015d3a99 100644 --- a/app/javascript/mastodon/actions/importer/normalizer.js +++ b/app/javascript/mastodon/actions/importer/normalizer.js @@ -1,5 +1,6 @@ import escapeTextContentForBrowser from 'escape-html'; import emojify from '../../features/emoji/emoji'; +import { unescapeHTML } from '../../utils/html'; const domParser = new DOMParser(); @@ -22,6 +23,7 @@ export function normalizeAccount(account) { ...pair, name_emojified: emojify(escapeTextContentForBrowser(pair.name)), value_emojified: emojify(pair.value, emojiMap), + value_plain: unescapeHTML(pair.value), })); } |