diff --git a/shortcodes/civicrm/api4-get.php b/shortcodes/civicrm/api4-get.php index 34db913..db37168 100644 --- a/shortcodes/civicrm/api4-get.php +++ b/shortcodes/civicrm/api4-get.php @@ -160,6 +160,11 @@ public function shortcode_callback( $atts = [], $content = NULL, $tag = '' ) { ' alt="' . ( $m['alt'] ? htmlentities( $m['alt'] ) : '" role="presentation' ) . '">'; } + } elseif ( preg_match( '/^img( : (? \d+ %? ) x (? \d+ %? ) | : alt= (?.*) | : [^:]* )* /x', $match['format'], $m ) ) { + $output = '' . ( $m['alt'] ? htmlentities( $m['alt'] ) : ''; } else { if ( is_array( $output ) ) { $output = implode( ', ', $output );