Strip HTML from a string

Results 1 to 2 of 2

Thread: Strip HTML from a string

  1. #1
    Join Date
    Dec 1969

    Default Strip HTML from a string

    How can I strip all HTML mark ups from a string?<BR><BR>Thanks for any help!

  2. #2
    f Guest

    Default RE: Strip HTML from a string

    well you maybe able to use this<BR>Instr() <BR> FUNCTION: Returns the numeric position of the first instance of one string within another. <BR> SYNTAX: Instr([start, ] strToBeSearched, strSearchFor [, compare]) <BR> ARGUMENTS: start (optional) is the numeric position to start the string search; strToBeSearched is the string expression to be searched; strSearchFor is the string expression search value; and compare (optional) is the value indicating the comparison constant. <BR> EXAMPLE: &#060;%<BR>strText = "This is a test!!"<BR>pos = Instr(strText, "a")<BR>response.write pos<BR>%&#062; <BR> RESULT: 9<BR>(string "a" is the 9th character in strText) <BR><BR>then use right to return a specified number of characters from the right. this is just an idea. but it may help start you in the right direction

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts