How to exclude html tags and class on search

There’s a php function called strip_tags, see https://www.php.net/manual/en/function.strip-tags.php

You can see it implemented for your use case here: Strip HTML Tags From Search Results

Hope that helps.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)