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
[7.0] Does not render HTML #949
Comments
Results are escaped by default on v7. Haven't documented all the breaking change yet but change log should provide some clues. Thanks! |
How can I fix the same issue but in Service? |
@brian2694 use the new method |
I have similar problem, any example to use the rawColumns ? |
|
Good! |
Maybe allow
? |
@divdax maybe try using |
thank u very much this is very helpful |
->escapeColumns([]) worked for me. rawColumns('column_with_html') did not. |
Nara, rawColumns takes an array argument, so it should be rawColumns(['column_with_html']) |
If wish to render a view in a column you could do this:
|
If I'm editing a column to render it with a view, then can it not be assumed by default that the view will be fully escaped by blade, and so does not need escaping again? A column edited with a view could be automatically set (by default) to be raw, just like an |
i have same problem, and my friend tell me to add ->escapeColumns([]), and its works. `if ($request->ajax()) {
|
@tonihidayt Do you understand what |
->escapeColumns([])This is working correct for me. |
I agree with @judgej . I do not want to risk escaping ALL columns, but the one that I want to make raw is an accessor and does not produce a raw result with |
@yajra Please update this documentation https://datatables.yajrabox.com/eloquent/add-edit-remove-column |
I'm using Laravel Datatables 7, but my table is not rendering HTML code. It was rendering HTML before, but when I updated to new Laravel DataTables to 7 from 6, it stopped rendering HTML in column. http://prntscr.com/e11n84
This is with Laravel DataTables 6 - http://prntscr.com/e11ph0
The text was updated successfully, but these errors were encountered: