Make wordpress stop changing object tag data.

The object tag can be used to embed any type of content into a html page. From flash through SVG and including html documents. It is similar to an iframe tag but the standard does not require it to have as much overhead. Hence it may be a better choice for an HTML5 based slide show.

The quick solution is to use a script


document.write('<'+'object data="something" width="200" height="200"></'+'object>');


The object tag in the script is still spotted by MCE editor used by wordpress but if it is spaced apart using javascript then it will not be changed by MCE editor.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: