I have a fragment of text that was spit out by Word.
The last line contains these ugly elements:
<!--![endif]--><!--![endif]--><!--![endif]--><!--![endif]--><!--![endif]--><!--![endif]--><!--![endif]--><!--![endif]--><!--![endif]--></!--![endif]--></!--![endif]--></!--![endif]--></!--![endif]--></!--![endif]--></!--![endif]--></!--![endif]--></!--![endif]--></!--![endif]--></![endif]--></!--[if></![endif]--></!--[if></![endif]--></!--[if>
Unfortunately, dryopteris does not remove the elements that look like this:
The pattern seems to be an open bracket and a forward slash.
"</!--[if>" and "</![endif]-->"
Thanks,
Lake
After further research, the issue is not with your library.
Sorry.