I have a line of code that replaces <br> tags with the word hello in some copy:
NewValue=whichfield.value.replace(/<br>/gi, "hello");
What I would like is for the <br> tags to be replaced with a carriage return instead. Can't seem to find the right syntax.
The code if for an Intranet, so no cross-browser worries. Anyone give me a clue?
NewValue=whichfield.value.replace(/<br>/gi, "hello");
What I would like is for the <br> tags to be replaced with a carriage return instead. Can't seem to find the right syntax.
The code if for an Intranet, so no cross-browser worries. Anyone give me a clue?