0

I have a search grid and when I select any row and close it the values get mapped to textboxes in aspx form. Issue is evrytime I have a value like ' ab & cd' it gets mapped as ' ab & cd'

i am finding the value as follows in the click event of tr

$(this).find("td:nth-child(1)").html();

Thanks

2 Answers 2

2

Use this html() gets the html code. and .text() function returns only text visible.

$(this).find("td:nth-child(1)").text();
Sign up to request clarification or add additional context in comments.

Comments

0

The raw JavaScript unescape() function can be used for this as follows:

var content = $(this).find("td:nth-child(1)").html();
var unescapedContent = unescape(content);

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.