Possible Javascript "replace" function bug in Google Chrome -
open chrome browser, try this:
'x </script>'.replace(/x/,'\'$\'') ---> "' </script> </script>" and one:
'x'.replace(/x/,'$$') --> "$" in ie, correct.
did wrong?
thanks nicholas's answer. function can used replacement parameter avoid issue.
Comments
Post a Comment