所以我有这个java命令打印内联XML的输出,我需要它在浏览器中打印。我正在使用PHP。我已经尝试过了:
echo "<pre>";
echo htmlspecialchars($output);
echo "</pre>";
仍然没有在浏览器中打印。 BTW $output
看起来像这样:
I complained to <ORGANIZATION>Microsoft</ORGANIZATION> about <PERSON>Bill Gates</PERSON>.
They told me to see the mayor of <LOCATION>New York</LOCATION>.