Text format for usual HTML commands

Category: 

  • Question

Hi,

I'd like to use some usual HTML commands on the "basic page" type of content. What text format should I use for this?

I tried to put the following code into "Edit" window:

But on every text format I used (Full HTML, Filtered HTML, Plain text) I just see this code on the page. How can I display my nice red circle?

Best regards,
Maria

4/20/16

Sorry, I forgot actual code:

var b = document.getElementById("someID");
b.innerHTML = "some text";

4/20/16

4/20/16

"

"

4/20/16

it disappears here... but it was just usual HTML code

4/20/16

First, make sure you've turned Rich Text (WYSIWYG) off when you're creating/editing your node.

Full HTML should work, but if you're still having trouble, you can create your own text format under the Configuration menu option. I usually create a "Raw HTML" text format for myself with all of the filters turned off, just so I have something the site won't mess with.

4/26/16