aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_settings/user_settings.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/user_settings/user_settings.js')
-rw-r--r--src/components/user_settings/user_settings.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/components/user_settings/user_settings.js b/src/components/user_settings/user_settings.js
index 7a2400f2..a9d05532 100644
--- a/src/components/user_settings/user_settings.js
+++ b/src/components/user_settings/user_settings.js
@@ -1,3 +1,5 @@
+import { unescape } from 'lodash';
+
import TabSwitcher from '../tab_switcher/tab_switcher.js'
import StyleSwitcher from '../style_switcher/style_switcher.vue'
import fileSizeFormatService from '../../services/file_size_format/file_size_format.js'
@@ -6,7 +8,7 @@ const UserSettings = {
data () {
return {
newName: this.$store.state.users.currentUser.name,
- newBio: this.parseEntities(this.$store.state.users.currentUser.description),
+ newBio: unescape(this.$store.state.users.currentUser.description),
newLocked: this.$store.state.users.currentUser.locked,
newNoRichText: this.$store.state.users.currentUser.no_rich_text,
newDefaultScope: this.$store.state.users.currentUser.default_scope,
@@ -287,14 +289,6 @@ const UserSettings = {
logout () {
this.$store.dispatch('logout')
this.$router.replace('/')
- },
- parseEntities (text) {
- const parser = new DOMParser
- const dom = parser.parseFromString(
- '<!doctype html><body>' + text,
- 'text/html')
- const decodedText = dom.body.textContent
- return decodedText
}
}
}