Title: Pasting complex HTML (conditional comments)
Last modified: August 18, 2016

---

# Pasting complex HTML (conditional comments)

 *  [schiller](https://wordpress.org/support/users/schiller/)
 * (@schiller)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/pasting-complex-html-conditional-comments/)
 * Hello, I am trying to have the following HTML code rendered in a blog entry:
 * `<div>
    <!--[if IE]> <script type="text/javascript"> if(isSVGControlInstalled()){
   document.write("<embed class='svgex' src='somesvgfile.svg' />"); } else { document.
   write("<p>Error!</p>"); } </script> <noscript> <p>Error!</p> </noscript> <![endif]--
   > <![if !IE]> <object type="image/svg+xml" data="somesvgfile.svg"> <p>Error!</
   p> </object> <![endif]> </div>
 * But the problem is that WordPress seems to be inserting spaces at some points(
   between the < and the !, for instance). Any help is appreciated to fix this.

The topic ‘Pasting complex HTML (conditional comments)’ is closed to new replies.

## Tags

 * [embed](https://wordpress.org/support/topic-tag/embed/)
 * [html](https://wordpress.org/support/topic-tag/html/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [schiller](https://wordpress.org/support/users/schiller/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/pasting-complex-html-conditional-comments/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
