Hello all of you,
This is just a slightly different version of the normal htmlfree
What I did was I fixed some stuff that 2 words might show up as one
and a way to strip the line into more lines I'll give a example:
Sometimes this happens when reading from a website:
Hi I'm Rick...How are you
With this htmlfree:
Hi I'm Rick... How are you.
Sometimes on the website you see 2 lines, but when you read it, it shows up with only 1 line:
Website:
Hi I'm Rick...
How are you?
This will show up:
Hi I'm Rick...How are you?
=================================
When you use $htmlfree() then it will replace the "enters" with $chr(20) (This is just a random character that's not being used) so you can do this: $gettok($htmlfree(),2,20)
alias -l htmlfree {
var %x, %i = $regsub($replace($1-,<td>,$chr(32),<tr>,$chr(20),<br>,$chr(20)),/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x, )
return %x
}