##// END OF EJS Templates
Sanitize dialog text-body....
Sanitize dialog text-body. Mitigate 7486, could probably be improved, but treat text as pure text, but assume that when received a dome element it actually come from a secure source. Sanitizing all we get, including Dom Element break json-metadata editor and a few others.

File last commit:

r19571:4aa90a90
r19982:6904781f
Show More
manager.py
14 lines | 434 B | text/x-python | PythonLexer
"""Manager to read and modify frontend config data in JSON files.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import os
from IPython.config.manager import BaseJSONConfigManager
class ConfigManager(BaseJSONConfigManager):
"""Config Manager use for storin Javascript side config"""
def _config_dir(self):
return os.path.join(self.profile_dir, 'nbconfig')