Laravel: Render queried Data whith Blade functions -


currently i'm getting data database , after want render within blade template.
in queried data have blade functions url('/foo') combined html. , here problem.

when i'm using {!! $child->description !!} html rendered correctly, blade function won't work:

function: url('/foo)
output: http://myurl.de/url('/foo')

when i'm using "normal" syntax {{ $child->description }} generated url correct (http://myurl.de/foo), html not rendered.

so question is:

how can use queried blade function within rendered html? ^^

/edit okay, perhaps question abstract. want show problem based on example. (generated template image - on german, sorry)

every form database entry like:

  • categoryname
  • categoryparent
  • ...
  • categorydescription

as can see on image, categorydescription small text under first input field small button. want use script abstract possible can fill entry every content want fill in. in case content is:

lore ipsum <a class="btn btn-primary btn-sm pull-right" href="url('foo')">dolor</a>

as can see there mentioned blade-function (url) , html.

{!! !!} - dont escapse string if u have database like, output that.

while in other hand {{ }} give "something" without , used protect injections.


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -