Search Web Page Content

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • C

    Search Web Page Content

    Hi

    I have a web app whereby the content for each page is stored in the database

    This content is interweaved in html and saved in the Database

    As a result when teh user does a search through the app and searches for say <table it brings back everything with teh table tag in the database

    Does anyone know if I can only search the text rather than the html and content in my Database

    Thanks
    C.
  • Raterus

    #2
    Re: Search Web Page Content

    I would imagine you are going to need a better way to store the data from each page, stripping any tags out of the content. When you fill this database, I'm sure you can go character by character through the content, removing tags, it would be something like this

    if nextCharacter = "<" then
    'skip all content until you find a ">"
    else
    'add this character to the final results
    end if

    It's a start anyway.
    --Michael

    "C" <anonymous@disc ussions.microso ft.com> wrote in message news:4387AA86-0A2A-4B78-B75E-B795DC83C748@mi crosoft.com...[color=blue]
    > Hi,
    >
    > I have a web app whereby the content for each page is stored in the database.
    >
    > This content is interweaved in html and saved in the Database.
    >
    > As a result when teh user does a search through the app and searches for say <table it brings back everything with teh table tag in the database.
    >
    > Does anyone know if I can only search the text rather than the html and content in my Database.
    >
    > Thanks,
    > C.[/color]

    Comment

    Working...