Skip to content

Commit

Permalink
Strip html tags from formatted address
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Oct 21, 2022
1 parent eeac069 commit 320ad3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/order/details.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="card-body">
<h2 class="h4 fw-normal">@lang('igniter.cart::default.checkout.text_delivery_address')</h2>
<b>{{ $order->customer_name }}</b><br>
{!! format_address($order->address) !!}
{{ format_address($order->address) }}
</div>
</div>
@endif
Expand Down
2 changes: 1 addition & 1 deletion components/order/restaurant.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class="img-fluid"
<dl class="no-spacing mb-0">
<dd><h2 class="h4 mb-0 fw-normal">{{ $location->location_name }}</h2></dd>
<dd>
<span class="text-muted text-truncate">{!! format_address($location->getAddress(), FALSE) !!}</span>
<span class="text-muted text-truncate">{{ format_address($location->getAddress(), false) }}</span>
</dd>
<dd>{{ $location->location_telephone }}</dd>
<dd>
Expand Down

0 comments on commit 320ad3f

Please sign in to comment.