| @@ -46,9 +46,9 @@ | ||
| 46 | 46 | <h3 class="ap-title p-name"><?php echo \esc_html( $args['title'] ); ?></h3> |
| 47 | 47 | <?php endif; ?> |
| 48 | 48 | |
| 49 | 49 | <?php if ( $args['content'] ) : ?> |
| 50 | - <div class="ap-subtitle p-summary e-content"><?php echo \Activitypub\Sanitize::content( $args['content'] ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Sanitize::content() returns kses-sanitized HTML. ?></div> | |
| 50 | + <div class="ap-subtitle p-summary e-content"><?php echo \wp_kses_post( $args['content'] ); ?></div> | |
| 51 | 51 | <?php endif; ?> |
| 52 | 52 | |
| 53 | 53 | <?php if ( $args['images'] ) : ?> |
| 54 | 54 | <div class="ap-preview <?php echo \esc_attr( 'layout-' . count( $args['images'] ) ); ?>"> |