Sony sanitize bootstrap data

Does an escape/unescape around the bootstrapping process to prevent XSS.
Take a look at either passing a list of parents and using that to prevent loops or using code from 'circularJSON' or another similar library.