Reputation: 13
I need to display some html/php on my website for the users to see, but not actually run, just show up as text.
I just need something that will work like this below
<table> <div> <p>
Upvotes: 0
Views: 73
Reputation: 1324
for print <table>
use <table>
http://www.w3schools.com/html/html_entities.asp
Upvotes: 0
Reputation: 3576
‘&’ (ampersand) becomes ‘&‘
‘"’ (double quote) becomes ‘"‘
”’ (single quote) becomes ‘'‘
‘<’ (less than) becomes ‘<‘
‘>’ (greater than) becomes ‘>‘
In your case
<table> <div> <p>
becomes
<table> <div> <p>
Upvotes: 0
Reputation: 943939
If you want <
to show up as data instead of meaning start of tag, use <
. For &
use &
. Nothing else needs changing in a text node.
Upvotes: 3