WordPress.org

Ready to get started?Download WordPress

Forums

Simple Tags
[resolved] Issue with Auto Tags, characters being html escaped after auto tag term (4 posts)

  1. Markus Stefanko
    Member
    Posted 1 year ago #

    Let's say a tag is found within apostrophes. What's happening with auto-tags is that

    by AJ ‘Brams’
    is being transformed to
    by AJ ‘Brams& #8217;
    ( html : AJ ‘<a href="/tags/Brams/" class="st_tag internal_tag posts_amount2" rel="tag" title="Posts tagged with Brams">Brams</a>& #8217;

    So it seems it additionally escapes already escaped characters, as the ’ becomes & #8217;

    http://wordpress.org/extend/plugins/simple-tags/

  2. Markus Stefanko
    Member
    Posted 1 year ago #

    the html is wrong in my post, as the forum automatically converted it.

    The html after the tag includes & amp ; ( without spaces ) SPACE #8217

    The last sentence should say 'as the & # 8127 ; ( without spaces ) becomes & amp ; SPACE $8127;

    Hard to explain, sorry.

  3. Markus Stefanko
    Member
    Posted 1 year ago #

    Went to class.client.autolinks.php, around line 166 and removed the trailing white space in the $substitute value:

    From :
    $substitute = '$1<a href="'.$term_link.'" class="st_tag internal_tag posts_amount'.$mposts.'" '.$rel.' title="'.$term_count->count.' '. esc_attr( sprintf( __('Posts tagged with %s', 'simpletags'), $term_name ) )."\">$2</a>$3 ";

    To :
    $substitute = '$1<a href="'.$term_link.'" class="st_tag internal_tag posts_amount'.$mposts.'" '.$rel.' title="'.$term_count->count.' '. esc_attr( sprintf( __('Posts tagged with %s', 'simpletags'), $term_name ) )."\">$2</a>$3";

    That fixed it so far for me. Are there any other implications with this change?

  4. Amaury Balmer
    Member
    Plugin Author

    Posted 1 year ago #

    Bug fixed on latest version (or previous again)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic