I have a scrips creating catalogues. It is prepared for localisation and it works. But there are "Hints" by "hover" explaining details. I would need to add line breaks on some points in these "pseudo tooltips". In my case <br>, "r\n\", and other standard line breakers don't work. I have in en.php:
<?php
/* English language configuration */
/* Version 2019-12-12 15:26 */
$lang = array (
'catalogue-hint' = 'REQUIRED Blablabla',
'another-hint' = 'OPTIONAL Blablabla',
...
'another_variable' = 'Blablabla');
?>
<div class="hint">
<div class="tooltip">
<span data-title="<?php echo $lang['catalogue-hint']; ?>">
<img src="./css/images/hint.png" alt="Hint">
</span>
</div>
</div>
<div class="label">
<?php echo $lang['catalogue-name']; ?><span class="req"></span>
</div>
Using <br> results in:
REQUIRED <br> Blablabla
I want it:
REQUIRED
Blablabla
, in the second required label hint "\n". Have a look. In the second label hint the text is cut after "REQUIRED". – Martin Sereday Dec 18 '19 at 20:44