Outputing html source in php

Im trying to display a bit of html so that the user can copy and paste. My problem is I cant render the tags properly in php. How do you output the source in php?