This is one possible solution specific to the problem I'm
having with MSXML.
Code is inefficient for explanatory clarity.
BodyAsHtmlString = replace(BodyAsHtmlString, "</a>",
("</a>"&vbcrlf))
BodyAsHtmlString = replace(BodyAsHtmlString, "</td>",
("</td>"&vbcrlf))
BodyAsHtmlString = replace(BodyAsHtmlString,
"</table>",
("</table>"&vbcrlf))
BodyAsHtmlString = replace(BodyAsHtmlString, "</tr>",
("</tr>"&vbcrlf))
BodyAsHtmlString = replace(BodyAsHtmlString, "</br>",
("</br>"&vbcrlf))
-KF
"Ken Fine" <kenfine@u.washington.edu> wrote in message
news:e52ln5$i7$1@forums.macromedia.com...
> Thanks, this code works just fine. However, I'm
realizing that my logic is
> going to need to be a little more sophisticated. The
string that I am
> breaking includes HTML code. Inserting a VbCr can mess
up the code.
>
> I need a way so that the breaks won't break code. Any
ideas? If I could
> identify a char that only appeared in written text,
that's one hacky
> solution.
>
> Thanks again,
> -KF
>
> "Julian Roberts" <nospam@charon.co.uk> wrote in
message
> news:e52kjj$shd$1@forums.macromedia.com...
>> Try something like
>>
>> for i=0 to len(mySt) step 5
>> mySt=left(mySt,i) & vbcrlf &
right(mySt,len(mySt)-i)
>> next
>>
>> --
>> Jules
>>
http://www.charon.co.uk/charoncart
>> Charon Cart 3
>> Shopping Cart Extension for Dreamweaver MX/MX 2004
>>
>>
>>
>>
>
>