I'm having a handlebar template defined. When rendered, a closing tag is automatically added just before any closing tag in my template, which leads my template being considered as plain text.
If you check this page: https://www.locaboat.com/tarifs/
ex.: {{myVariable}} is displayed as {{myVariable}}
.
I've checked and I don't have any tag left open. Even weirder, if I add an antislash before the closing tag, it keeps on interpreting the handlebars correctly, but of course it's not displayed correctly
ex.: {{myVariable}} is displayed as {{myVariable}}</div>
working on PHP Version 5.6.40, UTF-8 server
<script id="offer-template-<?php echo $shortcode_id;?>" type="text/x-handlebars-template">
<div class="col-lg-4 col-md-6 api-item date price" data-date="{{date}}" data-price="{{price}}" data-image="{{image}}" data-api-id="{{boat_id}}">
<div class="card mb-4">
<div class="card-header">
<div class="card-img-top"><img src="{{image}}"></div>
<div class="discount"><span class="h-rounded">-{{percent_discount}}%</span></div>
</div>
Right now, the output displays the rest of my handlebars template as plain text where it should be interpreted as a template, same as this page: https://www.locaboat.com/offres-speciales/