MCPcopy Create free account
hub / github.com/DHTMLX/gantt / sanitizeObject

Function sanitizeObject

scripts/backend/storage.js:50–59  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

48}
49
50function sanitizeObject(data){
51 for(var i in data){
52 if(typeof data[i] === "string"){
53 data[i] = striptags(data[i]);
54 }else if(typeof data[i] === "object"){
55 sanitizeObject(data[i]);
56 }
57 }
58 return data;
59}
60
61function _addId(id, data) {
62 return Object.assign(data, {id: id});

Callers 2

updateMethod · 0.85
insertMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected