- $rendered = sprintf(_m('voted for “<a href="%s">%s</a>”'),
- htmlspecialchars($poll->uri),
- htmlspecialchars($answer));
+ $link = '<a href="' . htmlspecialchars($poll->uri) . '">' . htmlspecialchars($answer) . '</a>';
+ // TRANS: Rendered version of the notice content voting for a poll.
+ // TRANS: %s a link to the poll with the chosen option as link description.
+ $rendered = sprintf(_m('voted for "%s"'), $link);