title: Removing HTML tags and replacing them with appropriate spacing and nextline
body: <p>I am using two separate text editors for my chat feature - a kendo editor and a normal editor. I would like to pass data between them when the user changes the editor. The text from kendo editor contains various html tags like <code>&lt;p&gt;,&lt;li&gt;,&lt;ul&gt;</code>. I would like to manually replace them with appropriate spacing and empty lines accordingly.</p>
  <p>Right now I am using this code</p>
  <p><code>this.messageBoxValue =messageBox.value.replace(/&lt;[^&gt;]*&gt;/g, '');</code></p>
  <p>Is there anyway I can use it to replace different html tags with different values? eg: replace <code>&lt;p&gt;</code> with next line <code>&lt;strong&gt;</code> with just space etc. Any help is appreciated.</p>
  <p>Edit : By normal editor I mean the inbuilt kendo text area for the kendo conversational ui. It is just for typing and has no features like bold or italics.</p>