def sanitize_HTML(obj):
    return repr(obj).replace('\n', '<br>').replace(' ', '&nbsp;')
Sanitize text output for HTML display
dataset/ETHPy150Open ioam/holoviews/holoviews/ipython/display_hooks.py/sanitize_HTML