0
Within a table I have the following structure:
<td>
<a href="#" data-toggle="popover" title="Dados" data-trigger="focus"
data-content=" <?php
echo $BlobParams[0].'<br>';
echo $BlobParams[1].'<br>';
echo $BlobParams[2].'<br>';
echo $BlobParams[3].'<br>';
echo $BlobParams[4].'<br>';
echo $BlobParams[5].'<br>';
echo $BlobParams[6];
?>">
Parametros
</a>
</td>
In the data-content
data appears from a array, would like one item to appear below the other. I tried to use the <br>
in many ways, but it didn’t work. The <br>
appears written on the screen.
What are you using to display this message? It supports HTML elements?
– Woss
Have you tried the predefined constant
PHP_EOL
in place of <br> ? Like this:echo $BlobParams[0]. PHP_EOL;
– Fabiano Monteiro
You will have to put the line break "inside the variable".
– MrStack
You search for this break by displaying the page code, right?
– Fabiano Monteiro
Have you tried ' r' or ' n' ? This might help you https://pt.wikipedia.org/wiki/Nova_line
– hugocsl