You might try:
- Remove the <p> tags you've wrapped around the <pre> tags.
- Style the <pre> tags in a stylesheet to be hidden.
The stylesheet or
<style> section in the
<head> would then need to include:
pre {display: none;}
This would, of course, hide all
<pre> tags in the epub.
Edit: perhaps this would fail, as per theducks' post