Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7922169
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:51:44+00:00 2026-06-03T16:51:44+00:00

I want to modify my function that strips the tag from the value of

  • 0

I want to modify my function that strips the tag from the value of a database record in the title of French pages:

Function removeSup(strToRemove)
    strToRemove = Replace(strToRemove,"<sup>","(")
    strToRemove = Replace(strToRemove,"</sup>",")")
    response.Write(strToRemove)
End Function

so that it can read the contents of the tag. If the contents is a ® or a ™, then do nothing, but if it’s MD or MC, then do the replace.
I just haven’t figured out how to read strings with VBScript so is this something that I should do with VBScript or have it passed to jQuery to do it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:51:46+00:00Added an answer on June 3, 2026 at 4:51 pm

    You could work with Regular Expressions but if i understand what you mean the you can do it as below.
    Jquery is javascript only, if this is for web, best not to mix vbscript and javascript unless realy necessary.

    Function removeSup(strToRemove) 
        strToRemove = Replace(strToRemove,"<sup>MD</sup>","(MD)") 
        strToRemove = Replace(strToRemove,"<sup>MC</sup>","(MD)") 
        response.Write(strToRemove) 
    End Function 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to modify a connection string that's hard-coded in a Java application (jar
I want to modify a view from Action Helper in Zend Framework in preDispatch()
i'm playing around with building a sql function that will extract numbers from a
I am trying to implement a JavaScript function that will modify the result values
Basically that is the function that I use to extract the date from the
I got 2 questions: My function looks like that function count() { var value
I have an Article controller & model. I want to have a function that
I want a function with this interface. func<Type1,CompileOption>( Type2 value) //or func<Type1>( Type2 value)
I want to modify my current script so that when you click on the
I'd like to define a helper function that has the ability to modify a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.