This code will echo a title then in <?php echo excerpt($result->text(), 300) ?> […] it will also echo an href. I just want plain text not the href. Any suggestions on how to fix this.
<h1><a href="<?php e($result->ext_url()->isNotEmpty(), $result->ext_url(), $result->url()) ?>" <?php e($result->ext_url()->isNotEmpty(), 'target="_blank"', '') ?>">
<?php
$breadcrumb = '';
foreach($result->parents()->flip() as $parent) {
echo $parent->title()->html(). ' » ';
}?>
<?php
if ($result->ext_url()->isNotEmpty())
echo html($result->title().' '.'<img alt="link" src="/kirby/assets/images/upload.png" class="link_image">');
else
echo html($result->title());
?>
</h1>
<p>
<?php echo excerpt($result->text(), 300) ?> [...]
</p>