Welcome to my personal home server, built using a Raspberry Pi and Docker to efficiently run multiple services. You are welcome to explore and access my dashboard for more details.
function decodeAndSanitize(encodedString) {
function base64Decode(str) {
return atob(str);
}
function sanitize(html) {
const tempDiv = document.createElement('div');
tempDiv.textContent = html;
return tempDiv.innerHTML;
}
const decodedString = base64Decode(encodedString);
const sanitizedString = sanitize(decodedString);
return sanitizedString;
}
const encodedString = "bGFiLm51bGx0Zi5kZXY=";
console.log(decodeAndSanitize(encodedString));