mirror of
https://github.com/Dvorinka/PPve.git
synced 2026-06-03 20:12:59 +00:00
et
This commit is contained in:
+8
-1
@@ -149,7 +149,7 @@
|
||||
text-align: ${bannerStyle.TextAlign || 'left'};
|
||||
line-height: 1.5;
|
||||
">
|
||||
${bannerTextContent}
|
||||
${bannerTextContent.replace(/</g, '<').replace(/>/g, '>')}
|
||||
</div>
|
||||
</div>
|
||||
`;
|
||||
@@ -293,6 +293,13 @@
|
||||
bannerContentEl.innerHTML = content;
|
||||
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
|
||||
if (bannerLinkValue) {
|
||||
let existingLink = bannerContainer.querySelector('a.banner-link');
|
||||
|
||||
Reference in New Issue
Block a user