I have the following problem, I want to render html inside a template made with laravel bucket.
I have it in the following way:
<i class="n-icon-help-circled" data-toggle="tooltip" data-placement="right" title="{{ '<p>' . _('Hola') . '</p><p>' . _('Mundo.') . '</p>' }}"></i>
In which _('Hola')
and _('Mundo.')
are methods that are in an internal class for globalization.
The problem is that I can not get the HTML back to me, what it does is show the text:
'<p>Hola</p><p>Mundo</p>'
And what I need is to show the Hello world without the tags.
I tried to do it with this {!! !!}
and with this {!!html_entity_decode( '<p>' . _('Hola') . '</p><p>' . _('Mundo.') . '</p>')!!}
and I can not make it show me the text as I want.
Sorry but I do not know much about Laravel. The version of the Framework is 4.2
P.D: If I use an echo, it shows it correctly. If I remove the html tags and try to make a return \n
it gives me a character error not allowed.