这是我的代码:
$html = $this->renderView('@App/pdf/default.html.twig', [
'item' => $item
]);
return new PdfResponse(
$this->get('knp_snappy.pdf')->getOutputFromHtml($html),
StringManipulation::slugify($item->getName()) . '.pdf'
);
那是在pdf文件中显示标签a,就像文本一样,而不是链接。我怎样才能使它成为链接?