How to remove url from omission dots in WordPress pagination?

I fiddled a bit around. First I tried a comparison with the strval of the $page, but then I just thought that the intval instead will only be 0 when the omission dots were evaluated.

So I now use this code

else if(intval(strip_tags($page)) == 0) {
  echo '<li class="page-item"><a class="page-link">'.$page.'</a></li>';
}

It does what I wanted it to do. But if anyone knows a better solution I am glad if you’d post it too.

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