Forum Moderators: open

Message Too Old, No Replies

convert html string

         

stevelibby

10:59 am on Aug 5, 2006 (gmt 0)

10+ Year Member



is it possible to convert html into one line using asp?
Example here to play with

<TABLE borderColor=#000000 cellSpacing=2 cellPadding=2 border=1>
<TR>
<TD>Insert text here</TD>
<TD>Insert text here</TD>
<TD>Insert text here</TD>
<TD>Insert text here</TD>
<TD>Insert text here</TD>
</TR>
</TABLE>

Easy_Coder

3:28 am on Aug 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you parsing a file? Off the top of my head I'd say build up RemoveWhiteSpace() function.

wsrinivas

10:09 am on Aug 11, 2006 (gmt 0)

10+ Year Member



read the html as a stream and replace the vbcrlf with nothing

output = replace(txtstream, "new line code ", "")

try the above it should work