plznty Posted November 12, 2009 Share Posted November 12, 2009 How can i make it so no HTML works inside of my page text area. For example I am writing <font color="red"> right now and it does not display on this site in HTML form but in text form Link to comment https://forums.phpfreaks.com/topic/181286-how-to-keep-html-text-within-an-area/ Share on other sites More sharing options...
BillyBoB Posted November 13, 2009 Share Posted November 13, 2009 have you tried displaying the text with the html code inside a <xmp> wrapper? For example, <xmp>I am writing html code inside a html form... <font color="red">Red?</xmp> Link to comment https://forums.phpfreaks.com/topic/181286-how-to-keep-html-text-within-an-area/#findComment-957139 Share on other sites More sharing options...
haku Posted November 14, 2009 Share Posted November 14, 2009 <a href="http://www.w3schools.com/tags/ref_entities.asp">HTML entities</a> will do this for you. In the source code, the < marks and > marks do not appear as those marks, but in the display they do. Link to comment https://forums.phpfreaks.com/topic/181286-how-to-keep-html-text-within-an-area/#findComment-957289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.