Add HTML Code

I want to put some HTML code in a Topic. If I click on Edit the topic and the "Code" and paste it there it does not work. It see it as Text. Here is my code:









“Let all that you do be done in love.” — 1 Corinthians 16:14



document.addEventListener("DOMContentLoaded", function() {
const form = document.getElementById("discussion-agreement");
const checkbox = form.querySelector("input[type='checkbox']");

form.addEventListener("submit", function(event) {
if (!checkbox.checked) {
event.preventDefault();
alert("Please confirm that you have read and agree to the Discussion Board Rules and Terms of Use before proceeding.");
} else {
// Redirect to your actual discussion board page
window.location.href = "https://www.carlislepby.org/discussion-board";
}
});
});