Skip to content

Commit

Permalink
Don't encode HTML in supplier texts
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Mar 9, 2021
1 parent 928b74e commit cd58708
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -30,19 +30,19 @@
<?php endif; ?>

<h3 class="supplier-name">
<?= $enc->html( $item->getName() ); ?>
<?= $enc->html( $item->getName(), $enc::TRUST ); ?>

<?php if( ( $addrItem = $item->getAddressItems()->first() ) !== null ) : ?>
<span class="supplier-address">(<?= $enc->html( $addrItem->getCity() ); ?>, <?= $enc->html( $addrItem->getCountryId() ); ?>)</span>
<?php endif ?>
</h3>

<?php foreach( $item->getRefItems( 'text', 'short', 'default' ) as $textItem ) : ?>
<p class="supplier-short"><?= $enc->html( $textItem->getContent() ); ?></p>
<p class="supplier-short"><?= $enc->html( $textItem->getContent(), $enc::TRUST ); ?></p>
<?php endforeach; ?>

<?php foreach( $item->getRefItems( 'text', 'long', 'default' ) as $textItem ) : ?>
<p class="supplier-long"><?= $enc->html( $textItem->getContent() ); ?></p>
<p class="supplier-long"><?= $enc->html( $textItem->getContent(), $enc::TRUST ); ?></p>
<?php endforeach; ?>

</div>
Expand Down

0 comments on commit cd58708

Please sign in to comment.