Forum Moderators: open

Message Too Old, No Replies

Filter HTML when using document.execCommand SaveAs

Is there a way to strip HTML when using...

         

troutkiller

3:32 am on Mar 14, 2002 (gmt 0)



Is there a way to strip HTML tags from a page where you use document.execCommand("SaveAs" and specify a .txt filename so file is purely text only?

tedster

7:55 am on Mar 14, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World, troutkiller.

I found only one reference on the MSDN site that comes close, and I don't fully get what they're saying about how to include the string for the filename:

MSDN Reference [msdn.microsoft.com]

Is that any help to you?

You're playing in territory that's new to me -- thanks for bringing up the topic. I didn't realize we can strip HTML tags with the Explorer "Save As" dialog. Of course, that's not the same as scripting the action.

Anyone else have input?