Thursday, February 08, 2007

special character in javascript reference

tired of generating dynamic javascript when there are some single quotes or some others special characters.

here is a little getting:

replace all single quote ( ' ) with & # 3 9 ; .

that's it.