Hi, I am having a little trouble here. I am trying to modify this $nohtml code:
alias nohtml {
var %x, %i = $regsub($1-,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x), %x = $remove(%x,&nbsp;)
return %x
}
to
replace the
<br> html tag with either a line feed or a null space or something instead of just removing it cause when I use just the nohtml alias alone, it just removes the <br> tag and the paragraphs all run together instead of having a line between them.
this is what i have so far but it won't replace the <br> tag. can someone tell me what i am doing wrong, and fix my code: :
alias nohtml2 {
var %br, %i
%br = $replace($1-,<br>,$null)
%i = $regsub(%br,/(^[^<]*>|<[^>]*>|<[^>]*$)/g,$null,%x)
return %x
}
Any help would be very much appreciated.....thanks