Jump to content

Recommended Posts

Posted

I need a bit of javascript to change and ( ` ) to a ( ' )

 

The text gets output in simple html

 

Jame`s was amazing

 

but needs to be

 

Jame's was amazing

 

Any ideas?

Posted

Thats great, but i need it to do the replace across a whole html page not just the string i specify in the script?

 

Can anyone help?

Posted
I need a bit of javascript to change and ( ` ) to a ( ' )

 

The text gets output in simple html

 

Jame`s was amazing

 

but needs to be

 

Jame's was amazing

 

Any ideas?

 

Yes.

 

You need to learn how to use an apostrophe! :) It tends to indicate ownership or missing letters. Sorry, but I've had to many people telling me off so I had to correct you.

 

http://www.apostrophe.fsnet.co.uk/

Posted
What's the application - you may have a hard time getting js to work across the whole doc.... explain what you are trying to do and someone may have a better trick...
Posted

Theoretically you could write a javascript look to get the content of each html element and replace it but this makes me shudder just to think of it. I think you need to give us more info about what your trying to achieve and the enviroment.

 

If its a static page then notepad, grep, etc will be your best bet.

 

If its database driven then maybe you could do it as a sql query in the backend or in what ever language is pulling your data from the database.

 

Cheers

Jona

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...