Replace Lessthan symbol and character by lessthan space character
<p>If I have to replace &lt; followed by nonspace character by &lt; character and space and nonspace character, I can use the following.</p>

<p>s = s.replace(/&lt;([^ ])/g, '&lt; $1');</p>

<p>But, It is replacing &lt; character followed by new line is replaced by &lt; character and space and new line line. I do not want to happen this replace for new line character. Can any one help me how to do it?</p>
