I wish to use the excerpt of a post in the meta description for better SEO, so I am using the get_the_excerpt() function to get the post's excerpt. However, I noticed that at the end it is adding [...] when the post's content is not separated by the More separator, and when it is longer than the configured maximum length.
Is there a clean way to remove this [...] in the end of the excerpt? The function doesn't seem to have a boolean parameter to specify whether you want it, or anything of that sort.
** UPDATE **
I do not want to remove the [...] from the main index.php. I just want to remove it in certain instances (in the meta description), and leave it in others. So the hook solution does not work in this case.
Thanks.