mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-05 04:52:58 +00:00
et
This commit is contained in:
+8
-1
@@ -149,7 +149,7 @@
|
|||||||
text-align: ${bannerStyle.TextAlign || 'left'};
|
text-align: ${bannerStyle.TextAlign || 'left'};
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
">
|
">
|
||||||
${bannerTextContent}
|
${bannerTextContent.replace(/</g, '<').replace(/>/g, '>')}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@@ -293,6 +293,13 @@
|
|||||||
bannerContentEl.innerHTML = content;
|
bannerContentEl.innerHTML = content;
|
||||||
bannerContainer.style.display = 'block';
|
bannerContainer.style.display = 'block';
|
||||||
|
|
||||||
|
// Decode HTML entities in the content
|
||||||
|
const htmlElements = bannerContentEl.getElementsByClassName('banner-html-content');
|
||||||
|
if (htmlElements.length > 0) {
|
||||||
|
htmlElements[0].innerHTML = new DOMParser().parseFromString(
|
||||||
|
htmlElements[0].textContent, 'text/html').documentElement.textContent;
|
||||||
|
}
|
||||||
|
|
||||||
// Update the banner link if it exists
|
// Update the banner link if it exists
|
||||||
if (bannerLinkValue) {
|
if (bannerLinkValue) {
|
||||||
let existingLink = bannerContainer.querySelector('a.banner-link');
|
let existingLink = bannerContainer.querySelector('a.banner-link');
|
||||||
|
|||||||
Reference in New Issue
Block a user