• I use Time.ly All-in-one Events calendar.

    On calendar events, Timely inserts <span> tags in event titles.

    This is a problem for Social Media Feather.

    To fix this, I modified social-media-feather/synved-social/synved-social.php around line 843:

    Before:
    $vars['title'] = html_entity_decode(get_the_title());

    After:

    $vars['title'] = wp_strip_all_tags(html_entity_decode(get_the_title()));

    Apparently, you could also somehow use the_title_attribute()
    instead of get_the_title()

    title_attribute strips the HTML.

    But I didn’t mess with that.

    … just a heads up in case anyone else has this issue.

    https://wordpress.org/plugins/social-media-feather/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks for the report. Given how many plugins seem to use this approach of adding HTML to titles I’ll have to strip it from them.

    The reason the plugin isn’t stripping right now is because there may be text in your titles that *looks* like markup but isn’t, for instance emoticons such as “<8”. Anyway, I found a solution for at least some non-markup symbols that shouldn’t be stripped, hopefully it’s going to work in most cases.

    I can’t get them to show up, normal titles. Can you help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fix share titles with HTML in them…’ is closed to new replies.