I have anchor tag and input tag
<a href="example.com">Go to Example.com</a>
and
开发者_StackOverflow社区<a href="example.com">Go to Example.com</a>
Now I need to display above text in input box
<input type="text" value="<a href="example.com">Go to Example.com</a>">
But it's not working, How can I do this?
Change quotes to html entities:
"
<input type="text" value="<a href="example.com">Go to Example.com</a>">
<input type="text" value="<a href="example.com">Go to Example.com</a>">
精彩评论