On 10/29/07, Jake Spurlock <[EMAIL PROTECTED]> wrote:
> I am at a little bit of a loss here. I have this string in Wordpress,
> and is throwing all kinds of text over the page.

> I am running Wordpress 2.3.1. I thought this might be the best place
> to ask. Any ideas?

and once more, to the list this time:

you need to strip_tags() from the body text (since it's got
paragraphs, and links, and all sorts of good stuff)... and then run
the that (and the other stuff you're submitting to digg) through
urlencode();

so we end up with something like:

 <div class="book_item"><a
href="http://digg.com/submit?phase=2&url=<?php
urlencode(the_permalink()); ?>&title=<?php urlencode(the_title());
?>&bodytext=<?php urlencode(strip_tags(the_excerpt())); ?>"><img
src="<?php bloginfo('template_url'); ?>/images/digg.gif" alt="Digg"
border="0" /></a></div>


justin
-- 
http://justinhileman.com

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to