Dragosvr92 Posted August 8, 2010 Share Posted August 8, 2010 Dos anyone know how may i make html look like text on a html php or whatever page ? Link to comment https://forums.phpfreaks.com/topic/210104-dont-show-html/ Share on other sites More sharing options...
lostprophetpunk Posted August 8, 2010 Share Posted August 8, 2010 Simple solution. the use of the <pre></pre> tags. <pre>any html code here</pre> Link to comment https://forums.phpfreaks.com/topic/210104-dont-show-html/#findComment-1096524 Share on other sites More sharing options...
Dragosvr92 Posted August 13, 2010 Author Share Posted August 13, 2010 hmmmmmm i thought that the pre tags are only for showing the text in html as it is wroted with the spaces i want to display html on a html page as a simple text for example this will result a link on a php page <a href=" ">Link</a> is there a way to show it as text ? and not its output link Link to comment https://forums.phpfreaks.com/topic/210104-dont-show-html/#findComment-1098787 Share on other sites More sharing options...
lostprophetpunk Posted August 13, 2010 Share Posted August 13, 2010 If you are looking for it on a php page, then use the htmlentities() tag to convert it to text... echo htmlentities("<a href='#'>click</a>"); Link to comment https://forums.phpfreaks.com/topic/210104-dont-show-html/#findComment-1098792 Share on other sites More sharing options...
Dragosvr92 Posted August 15, 2010 Author Share Posted August 15, 2010 If you are looking for it on a php page, then use the htmlentities() tag to convert it to text... echo htmlentities("<a href='#'>click</a>"); Thanks Lost Link to comment https://forums.phpfreaks.com/topic/210104-dont-show-html/#findComment-1099460 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.