• Resolved ubenzer

    (@ubenzer)


    Hi. This plug in is very creative. I am designing a custom template for my site and i’ll use this plug-in in it.

    But i realized something, and i can’t solve it myself.

    If post title has & in it, this plugin doesn’t convert it to & so it breaks validation. I don’t know it is also happens in posts.

    How can i solve this?

    http://wordpress.org/extend/plugins/snazzy-archives/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ubenzer

    (@ubenzer)

    I solved it myself.

    Using htmlspecialchars is OK.

    change this:
    $title = $post->post_title;
    into this:
    $title = htmlspecialchars($post->post_title);

    AND
    change this:
    $excerpt= $this->GetExcerpt($post->post_content);
    into this:
    $excerpt= htmlspecialchars($this->GetExcerpt($post->post_content));

    This is now included in v1.0 thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Snazzy Archives] & breaks validation’ is closed to new replies.