Reputation: 1103
I need to create a function that generates html code. This will output html to client for copy.
How can i do this?
For sample:
$htmlCode = "<div class='redRectangle'></div>";
If i echo $htmlCode
this will show a div
, but i need to show the code.
Can anyone help me?
Upvotes: 0
Views: 1037