Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing html characters pdf_packingslip


Peper

Recommended Posts

I'm bit baffled on the removal of html in admin/pdf_packingslip.php :

Only the company name shows up as eg <b>My Company name</b>

 

The tep_html_entity_decode is telling it to remove html but still I find <b> and </b> only on the customers company name

 

Anyone knows where to remove the html?

    //Draw the invoice address text
    $pdf->SetFont(PDF_INV_CORE_FONT, 'B', 10);
    $pdf->SetTextColor($standard_color[0], $standard_color[1], $standard_color[2]);
    $pdf->Text(11, 65, tep_html_entity_decode(ENTRY_SOLD_TO));
    $pdf->SetX(0);
    $pdf->SetY(70);
    $pdf->Cell(9);
    $pdf->MultiCell(70, 3.3, tep_html_entity_decode(tep_address_format($order->customer['format_id'], $order->customer, '', '', "\n")), 0, 'L');

same with Ship to

    //Draw the invoice delivery address text
    $pdf->SetFont(PDF_INV_CORE_FONT, 'B', 10);
    $pdf->SetTextColor($standard_color[0], $standard_color[1], $standard_color[2]);
    $pdf->Text(120, 65, tep_html_entity_decode(ENTRY_SHIP_TO));
    $pdf->SetX(0);
    $pdf->SetY(70);
    $pdf->Cell(118);
    $pdf->MultiCell(70, 3.3, tep_html_entity_decode(tep_address_format($order->delivery['format_id'], $order->delivery, '', '', "\n")), 0, 'L');

Getting the Phoenix off the ground

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...