Strip HTML From "mirror" output?

Raven434

Member
I wanted to capture the output of "zlib vars" to a separate file.

"mirror" looks to do that - *mirror* [filename] - stop [or start] logging to an additional file.

'mirror foo'
'zlib vars'
'mirror foo'

The output is in html though.

'cat foo'

<b>Copy/paste any of the following lines into the CLI to edit settings:</b><br>
<font color="black">zlib ascend_breakOnBoss = true</font>
<font color="black">zlib ascend_exitWhenDone = false</font>

Is there a way to specify vanilla ascii?

Thanks.
 

fronobulax

Developer
Staff member
Related, sometimes HTML is used for gCLI output and consequently shows up in the session log. I'd love it if there was a way to force session logs, that contain script generated output, to be plain text. I understand the the solution to this may be to educate the script writer ;-)
 

slyz

Developer
In Raven434's example, the first line is the the result a print_html(), but the other lines are just regular print() output.
 

xKiv

Active member
Isn't the gCLI *implemented* as a HTML widget?


If you are on a unix-like system (with cats and dogs ...) you can probably do something like "lynx -force-html -dump file.html > file.txt"
 
Top