Javascript or jquery replace text

Posted by ngreenwood6 on Stack Overflow See other posts from Stack Overflow or by ngreenwood6
Published on 2010-03-31T12:52:55Z Indexed on 2010/03/31 13:13 UTC
Read the original article Hit count: 165

Filed under:
|
|
|

I need to replace some text that is on the page within the body tag. I am using javascript but have jquery available if needed. I basically need to replace test® (test with the registered trademark) with TEST® or tests® with TESTS® and it could even be test with TEST® or tests with TESTS®. I am able to uppercase them but its not liking to work for me with the ® sign, it wants to put duplicates on ones that already have it. Basically anything on the page that has the word test or tests should be TEST® or TESTS® if it is plural. Any help is appreciated.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery