preventPre = pre => {
  pre.addEventListener('paste', event => {
    event.preventDefault();
    const text = event.clipboardData.getData('text/plain');
    document.execCommand('insertHTML', false, text);
  });
}
Prevent user from pasting DOM
Elements inside pre elements
@param {element} pre