1
0
Fork 0
mirror of https://git.youjo.love/youjo/youjo-fe.git synced 2025-03-06 10:33:04 +01:00

Merge branch 'issue-138-html-escaping' into 'develop'

 - escape html entities in BIO text

See merge request 
This commit is contained in:
Shpuld Shpludson 2019-02-05 15:24:31 +00:00
commit 8e51c78471

View file

@ -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.$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,