WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Issue with Auto Tags, characters being html escaped after auto tag term

[Resolved] Issue with Auto Tags, characters being html escaped after auto tag term

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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?

    Plugin Author Amaury Balmer

    @momo360modena

    Bug fixed on latest version (or previous again)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Issue with Auto Tags, characters being html escaped after auto tag term’ is closed to new replies.