polldaddy\.com|crowdsignal\.com|survey\.fm|poll\.fm)#', $parsed_url['host'], $matches ) ) { return $cache; } $parsed_url['host'] = $matches['host']; $output = ''; // Poll oEmbed responses include noscript which can be used as the AMP response. if ( preg_match( '##s', $cache, $matches ) ) { $output = $matches[1]; } if ( empty( $output ) ) { if ( ! empty( $attr['title'] ) ) { $name = $attr['title']; } elseif ( 'survey.fm' === $parsed_url['host'] || preg_match( '#^/s/#', $parsed_url['path'] ) ) { $name = __( 'View Survey', 'amp' ); } else { $name = __( 'View Poll', 'amp' ); } $output = sprintf( '%s', esc_url( $url ), esc_html( $name ) ); } return $output; } }