I need a bit of javascript to change and ( ` ) to a ( ' )
The text gets output in simple html
<p>Jame`s was amazing</p>
but needs to be
<p>Jame's was amazing</p>
Any ideas?
I need a bit of javascript to change and ( ` ) to a ( ' )
The text gets output in simple html
<p>Jame`s was amazing</p>
but needs to be
<p>Jame's was amazing</p>
Any ideas?
http://www.w3schools.com/jsref/jsref_replace.asp ??
Cheers
Jona
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?
Probably not what you need, but could you take the html into notepad and do a good ol' find and replace?
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/


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...
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
There are currently 1 users browsing this thread. (0 members and 1 guests)