HTML cuts when posting activity through API
-
$frmtd_content = "<a class='test' id='goshilovethisbpplugin' href='example.com'><i class='holycrap' data-some-data-attribute='omgnothingheckingworkz'></i></a>"; $gp_activity = groups_record_activity( array( 'action' => apply_filters('groups_activity_new_update_action', sprintf(__('%1$s group message %2$s', 'buddypress'), $msg_author, '<a href="' . bp_get_group_permalink($group) . '">' . esc_attr(bp_get_group_name($group)) . '</a>')), 'content' => $frmtd_content, 'type' => 'new_message', 'item_id' => $gid, 'user_id' => $user_id, ) );
Guys, why all classes, ids, data-attributes cuts when I pass it through API? There’s only HTML markup general tags…
- You must be logged in to reply to this topic.