jasonc Posted May 17, 2010 Share Posted May 17, 2010 how do i print to the screen the HTML code in a string? Link to comment https://forums.phpfreaks.com/topic/202024-how-do-i-print-to-the-screen-the-html-code-in-a-string/ Share on other sites More sharing options...
katierosy Posted May 18, 2010 Share Posted May 18, 2010 <?php echo $str='helo'; print $str1='helo1'; ?> Link to comment https://forums.phpfreaks.com/topic/202024-how-do-i-print-to-the-screen-the-html-code-in-a-string/#findComment-1060035 Share on other sites More sharing options...
anups Posted May 18, 2010 Share Posted May 18, 2010 $str = '<div>zxczxc</div>'; echo htmlentities($str); Link to comment https://forums.phpfreaks.com/topic/202024-how-do-i-print-to-the-screen-the-html-code-in-a-string/#findComment-1060059 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.