Try it with two of the {{'s.
For example:
Sanitized: {{{ $var }}}
Not sanitzied: {{ $var }}
escaping is making sure the content doesn't get executed, so instead of an image, you see `<img ..> in plain text. That is safe. But if you want to remove all html, you can use http://php.net/strip_tags
hi
I used such code to display content (using cketditor) But it display content with html tags. Can u help me.
I tried with {{{$page->description}}} but no help
Here I solved it with some help from uncle Google and some good guys like us that like to share their knowledge.
{{ preg_replace('/(<.*?>)|(&.*?;)/', '', $string) }}
the
(<.*?>)
seems to strip all the html tags pretty well.
(&.*?;)
strips all the HTML special characters, like:
© <, >
and other stuff
Try
strip_tags($string)
It will give you just plain text form string. It helped of me.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community