Advertisement

03.26.2008 at 01:32PM PDT, ID: 23272014
[x]
Attachment Details

TSQL to convert HTML (as ntext) to non-html text?

Asked by volking in MS SQL Server

Anyone have TSQL script to convert an HTML (in an ntext column) to just plain text? If not, then I'm probably gonna'hafta write one. Arrrrrgh ... Not just stripping all <tag> stuff but intelligent replacement, too.

things like ....
     <BR/> and <P></P> with CrLf's
     &lt; &gt;  with < and >
     maybe even converting stuff like <UL> and <LI> into tab indented text?

Anyone got any ideas? There's a lot of little programs out there but I need something that works in a plain old TSQL script!Start Free Trial
 
 
[+][-]03.26.2008 at 01:38PM PDT, ID: 21215947

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MS SQL Server
Sign Up Now!
Solution Provided By: chapmandew
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628