How to output only blockquotes content from recent posts in a widget?

You can use PHP Simple HTML DOM Parser https://simplehtmldom.sourceforge.io/

$html = str_get_html(the_content());
$blockquote = $html->find('blockquote', 0);
echo $blockquote

tech