RobColborne
MIS
Hi
I am using an application that stores a notes field as HTML for formatting. I would like to query the database directly using a query.
Is there any way through a SQL query to convert the notes to just the text the user has entered and do away with the HTML code.
A record in the datbase would have the following in the Notes field:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> P, UL, OL, DL, DIR, MENU, PRE { margin: 0 auto;}</STYLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY leftMargin=1 topMargin=1 rightMargin=1><FONT face=Tahoma color=#ff0000 size=2>
<DIV>These are the notes added by the user</DIV></FONT></BODY></HTML>
I would like to be able to just pull back the text in between the <DIV> and </DIV> sections.
Robert Colborne
I am using an application that stores a notes field as HTML for formatting. I would like to query the database directly using a query.
Is there any way through a SQL query to convert the notes to just the text the user has entered and do away with the HTML code.
A record in the datbase would have the following in the Notes field:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> P, UL, OL, DL, DIR, MENU, PRE { margin: 0 auto;}</STYLE>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR></HEAD>
<BODY leftMargin=1 topMargin=1 rightMargin=1><FONT face=Tahoma color=#ff0000 size=2>
<DIV>These are the notes added by the user</DIV></FONT></BODY></HTML>
I would like to be able to just pull back the text in between the <DIV> and </DIV> sections.
Robert Colborne