#1
  1. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Jun 2004
    Posts
    118
    Rep Power
    15

    Exclamation Help! REPLACE Not working


    Hi i am trying to remove some html tags from a string. This is my code

    Code:
    strText = "<STRONG><FONT color=#0000ff>From the editor's desk</FONT></STRONG>"
    
    Replace strText,"<STRONG><FONT color=#0000ff>"," "
    
    response.write(strText)
    It doesnt remove any of the string i want to replace. Can anyone help me!
  2. #2
  3. No Profile Picture
    Contributing User
    ASP Discoverer (100 - 499 posts)

    Join Date
    Jun 2004
    Posts
    118
    Rep Power
    15
    fixed it!

    needed to put strText = Replace(.........)
  4. #3
  5. No Profile Picture
    Registered User
    ASP Explorer (0 - 99 posts)

    Join Date
    Jun 2005
    Posts
    4
    Rep Power
    0

    Replace not working


    Please use the below syntex

    strText = "<STRONG><FONT color=#0000ff>From the editor's desk</FONT></STRONG>"
    strText = Replace(strText,"<STRONG><FONT color=#0000ff>"," ")
    response.write(strText)

    Cheers
    KB

Similar Threads

  1. Apostrophe curse, replace not working
    By cah28 in forum ASP Development
    Replies: 6
    Last Post: April 27th, 2005, 01:41 PM
  2. ASP code working in IE not working in Netscape and Mozilla
    By nebujacob2000 in forum HTML, JavaScript And CSS Help
    Replies: 2
    Last Post: January 18th, 2005, 10:56 AM
  3. Dealing with working hours in VBScript/ASP
    By xyzstarr in forum ASP Development
    Replies: 0
    Last Post: July 7th, 2004, 06:14 AM
  4. JavaScript Replace() method
    By Barnes in forum ASP Development
    Replies: 4
    Last Post: July 2nd, 2004, 10:45 AM
  5. replace string not working...
    By dev5 in forum ASP Development
    Replies: 16
    Last Post: February 13th, 2004, 02:05 PM

IMN logo majestic logo threadwatch logo seochat tools logo