[UPHPU] What is wrong here?

Richard K Miller richardkmiller at gmail.com
Mon Oct 29 16:24:12 MDT 2007


After running it through a validator, it appeared to be missing some  
ending tags </a> and </p>, and some entities aren't quoted:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.skiutah.com%2Fblog%2F&charset=%28detect+automatically%29&doctype=Inline&group=0

You might need to use html_entities() on the URL, title, and other  
blog elements to build a Digg link.

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

On Oct 29, 2007, at 3:48 PM, Jake Spurlock 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.
>
> <div class="book_item"><a
> href="http://digg.com/submit?phase=2&url=<?php the_permalink();
> ?>&title=<?php the_title(); ?>&bodytext=<?php the_excerpt(); ?>"><img
> src="<?php bloginfo('template_url'); ?>/images/digg.gif" alt="Digg"
> border="0" /></a></div>
>
> You can see it in action here: http://skiutah.com/blog
>
> I am running Wordpress 2.3.1. I thought this might be the best place
> to ask. Any ideas?
>
> Thanks
>
> Jake Spurlock
>
> _______________________________________________
>
> UPHPU mailing list
> UPHPU at uphpu.org
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net



More information about the UPHPU mailing list