Not sure what you mean. If you want the above to show in the browser as html tags, you can go:
echo htmlentities("<BODY><h1>HI !</BODY>");
and you'll get (in this case), the < replaced by > and the > replaced by < -- so this way it shows up in the browser.
Beyond that I'm not clear what you're asking for.