Using PHP inside posts: loosing the </a> tag!
-
I’ve tried using the runphp or the exstatic plugin to put some phpcode inside my posts. The code is functioning fine, and I can get a list of links this way to popupimages. But the code is not complete. I use this code:
< ?php
for ($i=1;$i<=9;$i++) {
echo "<a href="/2005/images/image$i.jpg" onclick="window.open('popup.htm?/2005/images/image$i.jpg','','resizeable=1,width=640,height=480'); return false"><img src="/2005/images/thumb-image$i.jpg" alt="imagename" class="photo" /></a>";
}
?>but whenever I try to save the post, it will abandon the closing tag for the link
</a>. This goes for both of the plugins, causing the rest of the page to function as one big link.Any idea what can cause this problem?
The topic ‘Using PHP inside posts: loosing the </a> tag!’ is closed to new replies.