I want to render a string in HTML with all it's escape sequence intact:
Like This:
eipt No. : 1995,\nmount 935\nAdm. : 17/06/2016\n\nINSTRUCTIONS :\n\n4) This cards is valid only for\nstudent name & for the period\nindicated.\n\n2) This Card is not transferable and\nmust be produced whenever\ndemandes\n\n3) In case of its loss, the holder of\nthis card must intimate to the\nPrincipal immediately in writing.\n\n4) \fanybody finds this card, he/she\nis requested to reach the\nPrincipal.\n\n \n\x0c
I am receiving strings like this from ajax request and I am setting the value of some tag like this:
$('#ExtractedText').text(responce["text"]);
Everything is working but string is not in its raw form. It looks something like this:
I want it to look in it's raw format. How can I achieve this?