Fix share titles with HTML in them…
-
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.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Fix share titles with HTML in them…’ is closed to new replies.