• Post Reply Bookmark Topic Watch Topic
  • New Topic

insert a href into a string  RSS feed

 
Brian Grey
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I put an href into a string?

I would like to have a string containing this
String link = "<a href="/home.do">Click Here</a>"

Thanks
 
jefff willis
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just escape the necessary double quotes:

 
Brian Grey
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
I've found out just after posting my issue.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!