S
sql
I am developing a Content Management System in ASP .NET with a SQL
Server database. The main content is stored as HTML (still not sure if
this is the way to go yet!) so that it is displayed on the page with
formatting, which will be specified by the user when adding the content
to a page. I am working on a search facility, which searches the main
content against the search word/s entered. The problem is that the
content contains HTML. It is possible that the HTML itself could
contain the word/s searched on by the user. I have 2 posiblilities
here, none of which i like, which are as follows:-
1. Store the html and a plain text version of the content, and search
the plain text version
2. Strip the html in the VB .NET code then search the string again to
see if the word/s are still present
Anyone got any ideas on how this should be done?
Server database. The main content is stored as HTML (still not sure if
this is the way to go yet!) so that it is displayed on the page with
formatting, which will be specified by the user when adding the content
to a page. I am working on a search facility, which searches the main
content against the search word/s entered. The problem is that the
content contains HTML. It is possible that the HTML itself could
contain the word/s searched on by the user. I have 2 posiblilities
here, none of which i like, which are as follows:-
1. Store the html and a plain text version of the content, and search
the plain text version
2. Strip the html in the VB .NET code then search the string again to
see if the word/s are still present
Anyone got any ideas on how this should be done?