mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
remove HTML tags from username
This commit is contained in:
parent
c2e57cf51a
commit
61e6f62ff5
@ -41,6 +41,7 @@ This app uses Web RTC to stream a desktop inside of a docker container. This is
|
|||||||
- Ignore duplicate notify bars.
|
- Ignore duplicate notify bars.
|
||||||
- No pointer events for notify bars.
|
- No pointer events for notify bars.
|
||||||
- Disable debug mode by default.
|
- Disable debug mode by default.
|
||||||
|
- Remove HTML tags from user name.
|
||||||
|
|
||||||
# Getting started & FAQ
|
# Getting started & FAQ
|
||||||
|
|
||||||
|
@ -48,6 +48,11 @@ export const mutations = mutationTree(state, {
|
|||||||
state.id = id
|
state.id = id
|
||||||
},
|
},
|
||||||
addMember(state, member: Member) {
|
addMember(state, member: Member) {
|
||||||
|
// remove html tags
|
||||||
|
let tmp = document.createElement("div");
|
||||||
|
tmp.innerHTML = member.displayname;
|
||||||
|
member.displayname = tmp.textContent || tmp.innerText || "";
|
||||||
|
|
||||||
state.members = {
|
state.members = {
|
||||||
...state.members,
|
...state.members,
|
||||||
[member.id]: {
|
[member.id]: {
|
||||||
|
Loading…
Reference in New Issue
Block a user