Hi, I'm having some requirement where i need to show some value in div tags and latter parse it to save in database. the value which is html escape char are getting translated when in div thus making the input wrong. like some where i'm using & and < they got displayed as" &" html escape code. what i want is that what ever be inputed is show as it is like if < is a input only < is shows not < and vice-versa
presently when user enter < and < both displayed as < but value remain as < when accessed to any variable. what i want is that < and < both displayed and value assigned to variable remain as it is means < and <
i tried using innerHTML, but not able to solve it other things like innerText doesnot work with div so I'm bit stuck any help would be appreciated
Thanks
Rahul
rs25 0 Newbie Poster
Airshow 416 WiFi Lounge Lizard Team Colleague
rs25 0 Newbie Poster
fxm 23 Posting Pro
Airshow 416 WiFi Lounge Lizard Team Colleague
rs25 0 Newbie Poster
Airshow 416 WiFi Lounge Lizard Team Colleague
rs25 0 Newbie Poster
fxm 23 Posting Pro
rs25 0 Newbie Poster
fxm 23 Posting Pro
rs25 commented: Great work. +2
rs25 0 Newbie Poster
Christian Harms 0 Newbie Poster
rs25 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.