-
-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
datatables laravel returned html element as a text #1305
Comments
Hello, it's normal, escapeColumn is for escaping columns, so it's escaped. |
But, what I should do, to return HTML element? |
you can use |
I used it, this same problem appeared |
try to use version 7.9.5, it's working for me, perhaps it's a recent bug. edit : |
I used the last version of datatables laravel, |
i don't think it will solve your issue |
What should I do in your opinion? |
you tried escapeColumns(['link' => true) or rawColumns(['link' => true]) ? |
Yes, it is. |
i mean which one you tested ? |
I tested them both |
escapeColumns([]) should disable escaping on all columns as a workaround |
I tried all solutions but nothing be changed |
and escapeColumns(null) ? |
Same problem, |
it should work i don't understand. |
How can i remove all escapeColumns calls? and why? |
inside your code i mean, |
My code now is |
try ->escapeColumns('') instead, but an empty array should work aswell i don't undestand. |
Same problem, I also don't understand why the action work probably but the link no |
the action work because it's not escaped by default |
Thank you for your effort, |
There is any way to find a solution ? |
Have released a patch v7.9.8. Can you please verify if it fixes the issue? Thanks and sorry for the inconvenience. |
How I can upgrade to the last release? |
i think you should try :
the latest release does not fix this issue, for me. if i do :
the action column is escaped, and if i do :
the column is not escaped anymore. |
How i can update my version to 7.9.8 |
you can change your composer.json and set yajra/laravel-datatables to 7.9.8 or you can do composer require yajra/laravel-datatables 7.9.8 directly, it will change your composer.json and update the package |
Ok, I'll try it |
Finally, it works, |
for versions above 8, u have to go to config/datatables.php file....and add your column name in ....raw => ['name_of your_column'] |
The laravel datatables return an HTML as a text I used a rawColumns and escapeColumns but not working
Please what a solution and thank you
Please find a below pictures
Code snippet of problem
System details
The text was updated successfully, but these errors were encountered: