@yoobic/yobi 8.7.46 → 8.7.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -457,7 +457,7 @@ const YooFormTextAreaComponent = class {
|
|
457
457
|
let html = this.inputEl.innerText;
|
458
458
|
if (this.idOnly) {
|
459
459
|
const mentionIds = Array.from(this.inputEl.querySelectorAll('yoo-mention-tag'))
|
460
|
-
.filter((node) => node.innerHTML === node.dataset.description)
|
460
|
+
.filter((node) => node.innerHTML === node.dataset.description.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'))
|
461
461
|
.map((node) => (node.dataset.id));
|
462
462
|
mentionIds === null || mentionIds === void 0 ? void 0 : mentionIds.forEach((id) => {
|
463
463
|
var _a;
|
@@ -501,7 +501,7 @@ const YooFormTextAreaComponent = class {
|
|
501
501
|
}
|
502
502
|
syncMentionIds() {
|
503
503
|
const mentionIds = Array.from(this.inputEl.querySelectorAll('yoo-mention-tag'))
|
504
|
-
.filter((node) => node.innerHTML === node.dataset.description)
|
504
|
+
.filter((node) => node.innerHTML === node.dataset.description.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'))
|
505
505
|
.map((node) => ({ id: node.dataset.id, content: node.dataset.description }));
|
506
506
|
this.mentionsChanged.emit({ mentions: mentionIds });
|
507
507
|
}
|
@@ -435,7 +435,7 @@ export class YooFormTextAreaComponent {
|
|
435
435
|
let html = this.inputEl.innerText;
|
436
436
|
if (this.idOnly) {
|
437
437
|
const mentionIds = Array.from(this.inputEl.querySelectorAll('yoo-mention-tag'))
|
438
|
-
.filter((node) => node.innerHTML === node.dataset.description)
|
438
|
+
.filter((node) => node.innerHTML === node.dataset.description.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'))
|
439
439
|
.map((node) => (node.dataset.id));
|
440
440
|
mentionIds === null || mentionIds === void 0 ? void 0 : mentionIds.forEach((id) => {
|
441
441
|
var _a;
|
@@ -479,7 +479,7 @@ export class YooFormTextAreaComponent {
|
|
479
479
|
}
|
480
480
|
syncMentionIds() {
|
481
481
|
const mentionIds = Array.from(this.inputEl.querySelectorAll('yoo-mention-tag'))
|
482
|
-
.filter((node) => node.innerHTML === node.dataset.description)
|
482
|
+
.filter((node) => node.innerHTML === node.dataset.description.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'))
|
483
483
|
.map((node) => ({ id: node.dataset.id, content: node.dataset.description }));
|
484
484
|
this.mentionsChanged.emit({ mentions: mentionIds });
|
485
485
|
}
|
@@ -453,7 +453,7 @@ const YooFormTextAreaComponent = class {
|
|
453
453
|
let html = this.inputEl.innerText;
|
454
454
|
if (this.idOnly) {
|
455
455
|
const mentionIds = Array.from(this.inputEl.querySelectorAll('yoo-mention-tag'))
|
456
|
-
.filter((node) => node.innerHTML === node.dataset.description)
|
456
|
+
.filter((node) => node.innerHTML === node.dataset.description.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'))
|
457
457
|
.map((node) => (node.dataset.id));
|
458
458
|
mentionIds === null || mentionIds === void 0 ? void 0 : mentionIds.forEach((id) => {
|
459
459
|
var _a;
|
@@ -497,7 +497,7 @@ const YooFormTextAreaComponent = class {
|
|
497
497
|
}
|
498
498
|
syncMentionIds() {
|
499
499
|
const mentionIds = Array.from(this.inputEl.querySelectorAll('yoo-mention-tag'))
|
500
|
-
.filter((node) => node.innerHTML === node.dataset.description)
|
500
|
+
.filter((node) => node.innerHTML === node.dataset.description.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'))
|
501
501
|
.map((node) => ({ id: node.dataset.id, content: node.dataset.description }));
|
502
502
|
this.mentionsChanged.emit({ mentions: mentionIds });
|
503
503
|
}
|
@@ -453,7 +453,7 @@ const YooFormTextAreaComponent = class {
|
|
453
453
|
let html = this.inputEl.innerText;
|
454
454
|
if (this.idOnly) {
|
455
455
|
const mentionIds = Array.from(this.inputEl.querySelectorAll('yoo-mention-tag'))
|
456
|
-
.filter((node) => node.innerHTML === node.dataset.description)
|
456
|
+
.filter((node) => node.innerHTML === node.dataset.description.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'))
|
457
457
|
.map((node) => (node.dataset.id));
|
458
458
|
mentionIds === null || mentionIds === void 0 ? void 0 : mentionIds.forEach((id) => {
|
459
459
|
var _a;
|
@@ -497,7 +497,7 @@ const YooFormTextAreaComponent = class {
|
|
497
497
|
}
|
498
498
|
syncMentionIds() {
|
499
499
|
const mentionIds = Array.from(this.inputEl.querySelectorAll('yoo-mention-tag'))
|
500
|
-
.filter((node) => node.innerHTML === node.dataset.description)
|
500
|
+
.filter((node) => node.innerHTML === node.dataset.description.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'))
|
501
501
|
.map((node) => ({ id: node.dataset.id, content: node.dataset.description }));
|
502
502
|
this.mentionsChanged.emit({ mentions: mentionIds });
|
503
503
|
}
|