In a post I have some text and some media attachments and when I use the_excerpt(), it strips all the anchor tags from the attachments and shows just their file names and its causing me problems as some of the filenames are really long. Is there a way of excluding media attachment content from the_excerpt()?
If not, is there a way to show the anchor tags when using the_excerpt() that wont leave unclosed tags and what not?