ZoomIn in Wordpress

Andrew Hallam | | 5 May 2006, 17:55

In my last post I said it was going to see how easy it was to embed a ZoomIn map in a blog post. Tried. Failed.

When I enter the the <script> … </script> element in the Wordpress editor it escapes some of the characters to HTML entities and Unicode characters and inserts <br /> elements (not good inside a JavaScript block). The <script> elements also get wrapped in <p> elements.

Several attempts at workarounds also failed, including putting all the JavaScript on one line, and wrapping it with <![CDATA[ … ]]> or HTML comment tags.

Comments [2] »

  1. Take a look at this extension for WP:

    http://dev.wp-plugins.org/wiki/TextControl

    You can control the text formatting on either global or per post setting.

    James Fee 5 May 2006, 19:07

  2. Thanks James,

    I did look for Wordpress plug-ins, but missed this one. Will give it a go tonight.

    Andrew

    Andrew Hallam 5 May 2006, 19:17

Commenting is closed for this article.

|

Powered by Textpattern | Tranquility White made TXP-ready by Textpattern Templates