Clean way to avoid escaping of quotes in JS in extraAttributes
Hi all
I'm using
HtmlString
when using JS in extraAttributes()
but it's adding slashes before all single and double quotes. The only way I've been able to avoid that is by using Illuminate\Support\Js
:
Which isn't very readable... Is there a cleaner of doing this?3 Replies
If I use HtmlString without the Js helper like:
I end up with:
bump
Solution
?
Works, thank you! I could have sworn I tried that lol