Port of [10.2] Sanitizes IPython notebook output See merge request gitlab/gitlabhq!2285 (cherry picked from commit 1c46e031) aac035fe Port of [10.2] Sanitizes IPython notebook output