After trying some solutions from this and many other questions I wasn\'t able to get what is exact problem in my code. My code
$(document).ready(function() {
use strip_tags while sending data from server file if that is in php like below-
SERVER file
HI"; echo strip_tags($msg); ?>