簡単ですが、どこが間違っているのかわかりません。コードは次のとおりです。
<?php
$v='<?xml version="1.0" ?><span style="font-size:10px">{point.key}</span><table>';
print $v;
?>
ブラウザに次のように出力させたい
'<?xml version="1.0" ?><span style="font-size:10px">{point.key}</span><table>'
しかし、ブラウザは印刷します
{point.key}
ページのソースを表示すると、
<?xml version="1.0" ?><span style="font-size:10px">{point.key}</span><table>
私は混乱しています。$v 変数に解析されていない xml 文字列があるかどうか。実際、JSONを使用してXML文字列を次のように転送すると、この問題が発生しました
"tooltip": {
headerFormat: '<span style="font-size:10px">{point.key}</span><table>',
pointFormat: '<tr><td style="color:{series.color};padding:0">{series.name}:</td><td style="padding:0"><b>{point.y:.1f} mm</b></td></tr>',
footerFormat: '</table>',
shared: true,
useHTML: true
},
私が得る場所
headerFormat: '{point.key}'`
それ以外の
headerFormat:'<span style="font-size:10px">{point.key}</span><table>'