Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to decode this on an html page

[object HTMLLIElement]
Posted
Comments
ZurdoDev 14-May-15 10:04am    
You don't. That isn't encoded. It is an object, you want to inspect its properties.
NeelQuery 14-May-15 10:20am    
Thank you Ryan for your comment. If i need to display its text, how do i do that?

1 solution

The text of a HTMLLIElement (and any other HTMLElement) is stored in its textContent property.
JavaScript
var text = yourElement.textContent;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900