« Back to the HTML Forum

Display code without executing it.

How do I display code in comments and in my profile without executing it?

Exame, I wish for people to see a B tag and end tag, not for it to actually make my text bold.


Report Topic

1 Reply

Reply by Nut

posted
updated

EDIT2: idk how to fix it so just take this page that explains it, you can see this post as proof that it works lol 

https://www.geeksforgeeks.org/how-to-display-html-tags-as-plain-text-in-html/


EDIT: gotta figure out how to visualise them gimme sec to fix


If you want to show the tags you should replace < and > with < and > respectively


From: 

<b>example</b>

To:

<b>example</b>


Permalink Report Reply