Forums

[resolved] [Plugin: Snazzy Archives] & breaks validation (3 posts)

  1. UBenzer
    Member
    Posted 1 year ago #

    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/

  2. UBenzer
    Member
    Posted 1 year ago #

    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));

  3. freediver
    Member
    Posted 1 year ago #

    This is now included in v1.0 thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic