| @@ -290,9 +290,9 @@ | ||
| 290 | 290 | |
| 291 | 291 | $out = array( |
| 292 | 292 | 'id' => (int) $post->ID, |
| 293 | 293 | 'agentId' => $agent_id, |
| 294 | - 'agentName' => $agent ? $agent->display_name : __( 'Deleted agent', 'desktop-mode' ), | |
| 294 | + 'agentName' => $agent ? openstation_plain_text_title( $agent->display_name ) : __( 'Deleted agent', 'desktop-mode' ), | |
| 295 | 295 | 'agentDescription' => $agent ? (string) get_user_meta( $agent_id, '_desktop_mode_agent_description', true ) : '', |
| 296 | 296 | 'agentAvatarUrl' => function_exists( 'openstation_agent_avatar_url' ) ? openstation_agent_avatar_url( $agent_id ) : '', |
| 297 | 297 | 'title' => (string) $post->post_title, |
| 298 | 298 | // Second sidebar line + who spoke last, so the list can say |