Strip footnotes from excerpts

fixes #4572

- Remove both inline and bottom footnotes from excerpt output before stripping the remaining HTML
- Don't output red errors for codemirror, as codemirror gets confused by footnote syntax