I am have troubles trying to print out < > symbols in HTML using PHP.
<
>
I am appending a string \"\" to a v
echo htmlentities($output);
or
echo htmlspecialchars($output);
If you don't want to bother manually going through your string and replacing the entities.