title: How to prevent script tags in text from executing?
body: <p>I had a text box in my browser. Whatever you typed in the text box and clicked on <kbd>okay</kbd> button, the text submitted server through a AJAX request and  then spread that message to remaining people, including to  me also.</p>
  
  <p>The message is appeared on a <code>&lt;div&gt;</code>.</p>
  
  <p>What's my problem is if I typed html or script tags in that message they are not appearing in the message <code>&lt;div&gt;</code> and they are executing .</p>
  
  <p>If I typed like tags opened and end with script in that middle code is executing on client side, how can I prevent executing and I am able to spread <code>&lt;script&gt;</code> tags also in the messages spreading to all.</p>