I’m trying to get the innerHTML value of a node. The value is D&O. When I try to get this value using innerHTML I’m getting D &[semicolon] O. Is there any option to get the exact value rather than encoded value using Javascript? Please help me.
Forum prevents me from entering semicolon after &
You can use
innerHTMLwill returns the equivalent HTML that would provide the text that you see.