Skip to content
Snippets Groups Projects
Commit ebd68e73 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Fix \'

parent 4ac9f1b2
No related branches found
No related tags found
No related merge requests found
Pipeline #38849 passed
......@@ -17,7 +17,7 @@ use UnicaenAutoform\Entity\Db\Champ;
<?php for($position = 0 ; $position < $size ; $position ++) : ?>
<li>
<?php $sub = explode("|", $libelles[$position]); ?>
<?php echo $sub[1] ?> :
<?php echo str_replace(["\'"],["'"],$sub[1]); ?> :
<?php
$resplits = str_replace("_"," ",$splits[$position]);
echo $resplits;
......
......@@ -29,7 +29,8 @@ $reponses = explode(Champ::SEPARATOR_PLUS_CUSTOM_GROUP, (string) $data);
<?php $splits = explode(Champ::SEPARATOR_PLUS_CUSTOM_FIELD, $reponse); $position = 0;?>
<?php foreach ($splits as $split) : ?>
<?php if ($split !== '') : ?>
<li> <?php echo $libelles[$position]; ?> : <?php echo $split; ?> </li>
<?php $tLibelle = str_replace(["\'"],["'"],$libelles[$position]); ?>
<li> <?php echo $tLibelle; ?> : <?php echo $split; ?> </li>
<?php endif; ?>
<?php $position++; ?>
<?php endforeach; ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment