我正在使用Docxpresso 库来呈现文档。在 HTML 中呈现文本时,ODT 文件中的结果会忽略或消除与号“&”。如何修改库以使其不删除“&”?下面我留下我使用的代码:
$html = '
<style>
* {font-family: Arial; font-size: 8pt}
</style>
<p style="text-align: center;"><strong><u>MINUTA >> << &&&</u></strong></p>';
$doc = new Docxpresso\createDocument();
$format = '.odt'; //only .odt because I dont have licence
$doc->html(array('html'=>$html, 'encoding' => 'UTF-8'));
$doc->render('sample' . $format);
header('Location: ../creditogarveh/sample'.$format);
我希望存档中的输出类似于:“MINUTA >> << &&&”,但实际输出:“MINUTA >>”。
噜噜哒