I have a string with XML:
$string = \" Shoue \"; <
If you just want a plain-text representation of your (pre-formatted) string, you can wrap it in HTML tags and use htmlentities to escape the angle brackets:
', htmlentities($string), '