Feedback on: irt.org FAQ Knowledge Base Q771
Worth:
Very worth reading
Comments:
How do I replace a double quote with ^ in a string?
Comments:
Sorry I couldnt figure out which one of the forms(whether to use the answer a question or not). So I hope you dont mind this being sent here.
This is in regards to the question found here: http://developer.irt.org/script/771.htm . I have a much shorter method for the find and replace.
It is simply to combine the split and join methods. Here is an example of how to do it
myText="Hello Every One"
myFinalText=myText.split("e").join("c")
alert(myFinalText)
This will alert "Hcllo cvcry onc"
This will work with whole strings and easily adapted into a soft-coded function.
Again I hope you dont mind.