sarathi Posted July 28, 2009 Share Posted July 28, 2009 I am looking for a way to automatically replace < and > with < and >, I have tried <xmp> but it seems to pre-format the text, which I don't want. I also have a system which insert html when certain tags are placed in the text, such as [*code*] and [*/code*], and I want the html entered from these to display. Is there any way to do this in html or php? Link to comment https://forums.phpfreaks.com/topic/167842-solved-is-there-a-way-to-display-html-without-manually-inserting-ect/ Share on other sites More sharing options...
sarathi Posted July 28, 2009 Author Share Posted July 28, 2009 nvm, I just discovered htmlspecialchars(); Link to comment https://forums.phpfreaks.com/topic/167842-solved-is-there-a-way-to-display-html-without-manually-inserting-ect/#findComment-885248 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.