data['codes'] ?? []; ?>
getHtml('HSCodes'); ?>download
getHtml('Search', '0', '0'); ?>
$value) : ++$count; $id = \substr($value['Goods_code'], 0, (int) \stripos($value['Goods_code'], ' ')); $url = UriFactory::build('{/base}/customs/hscode/view?id=' . $id); $description = $this->printHtml($value['Description']); $foundKeyword = \stripos($description, $this->request->getDataString('hscode')); if ($foundKeyword !== false) { $len = \strlen($this->request->getDataString('hscode')); // Whitespace handling is causing issues since the whitespace is only rendered if followed by another character // If whitespace found -> exclude from string -> add   which gets always rendered unlike the whitespace $startsWithS = ($description[$foundKeyword - 1] ?? '') === ' '; $endsWithS = ($description[$foundKeyword + $len] ?? '') === ' '; $description = \substr($description, 0, $foundKeyword - ((int) $startsWithS)) . (($description[$foundKeyword - 1] ?? '') === ' ' ? ' ' : '') . '' . \substr($description, $foundKeyword, $len) . '' . (($description[$foundKeyword + $len] ?? '') === ' ' ? ' ' : '') . \substr($description, $foundKeyword + $len + ((int) $endsWithS)); } ?>
getHtml('Code'); ?> getHtml('Description'); ?>
printHtml($value['Indent']); ?>printHtml($value['Goods_code']); ?>
getHtml('Empty', '0', '0'); ?>