Skip to content

docs: escape DataTables cells and validate identifiers in the upsert wrapper - #31

Merged
muhammetsafak merged 2 commits into
mainfrom
docs/fix-unsafe-examples
Nov 24, 2026
Merged

muhammetsafak merged 2 commits into
mainfrom
docs/fix-unsafe-examples

Conversation

@muhammetsafak

Copy link
Copy Markdown
Contributor

Summary

Documentation-only change: examples that could be copied into an application in an unsafe form are corrected.

  • Render user-supplied columns with $.fn.dataTable.render.text() in the client examples and escape in PHP renderers, with a note in the Introduction and Renderers pages
  • Send a JSON content type in every DataTables endpoint example
  • Validate the table, conflict column and row keys in the upsert wrapper

Notes

  • Only docs/ and README.md change; src/, tests and CI are untouched, and library behavior is unchanged.
  • wiki-sync.sh --check docs passes.

…wrapper

- Render user-supplied columns with `$.fn.dataTable.render.text()` in the client examples and escape in PHP renderers, with a note in the Introduction and Renderers pages
- Send a JSON content type in every DataTables endpoint example
- Validate the table, conflict column and row keys in the upsert wrapper
- Escape the full_name, re-registration and Renderer examples and the client name column in the Renderers and Advanced pages
@muhammetsafak
muhammetsafak merged commit c83a545 into main Nov 24, 2026
4 checks passed
@muhammetsafak
muhammetsafak deleted the docs/fix-unsafe-examples branch November 24, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant