\n"):e,setAttributes(e,t){for(var n in t)e.setAttribute(n,t[n])},inputToggle(e){if(e.target.classList.contains("input-toggle")){let t=e.target.parentElement.lastElementChild;!0===e.target.checked?(t.style.height=t.scrollHeight+"px",t.classList.remove("hidden")):(t.firstChild.value="",t.style.height=null,t.classList.add("hidden"))}},addInput({parent:e,elm:t,placeholder:n,type:l,name:i,max:a}){a=a||6;let r=document.createElement("div");r.setAttribute("class","new-input");let c=document.createElement("input");c.setAttribute("type",l),c.setAttribute("placeholder",n),c.setAttribute("name",i);let o=document.createElement("button");o.setAttribute("class","remove"),o.setAttribute("type","button"),r.appendChild(c),r.appendChild(o),t.appendChild(r),t.childNodes.length>=a&&(t.nextElementSibling.disabled=!0,t.nextElementSibling.style.cssText="opacity:.3;cursor:not-allowed"),e.style.height=e.scrollHeight+"px"},removeInput({elm:e,target:t,max:n}){if(n=n||6,"remove"===t.className){--n;let i=t.parentElement.parentNode;var l=t.parentElement.getBoundingClientRect().height;t.parentElement.remove(),e.style.height=e.getBoundingClientRect().height-l+"px",i.childNodes.length<=n&&(i.nextElementSibling.disabled=!1,i.nextElementSibling.style.cssText="opacity:1;cursor:pointer;")}}};!function(){const e=document.querySelector("#html"),t=document.querySelector("#encoded");e.onkeyup=(()=>{t.value=e.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")})}();