$html = '<form id="form1" name="f1" action="/jk" dummy';
$html = str_replace(
'<form id="form1" name="f1"',
'<form id="form1" name="f1" xxxxxxxxxxxxx',
$html);
echo highlight_string($html, true);
another way to show is:
header("Content-Type: text/plain");
echo $html;