Android Question string builder hyperlink

Discussion in 'Android Questions' started by merlin2049er, Jun 3, 2015.

  1. merlin2049er

    merlin2049er Well-Known Member Licensed User

    I'm getting an syntax error trying to create a hyperlink within stringbuilder...

    ie; stringbuilder.append("<ahref="http://www.w3schools.com/html/">Visit our HTML tutorial</a>")

    I don't know why.
     
  2. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Because you have quotes inside there.
     
    giga, lemonisdead and Peter Simpson like this.
  3. thedesolatesoul

    thedesolatesoul Expert Licensed User

  4. merlin2049er

    merlin2049er Well-Known Member Licensed User

    Ok, it was a late night. Should have figured that out.
     
  5. thedesolatesoul

    thedesolatesoul Expert Licensed User

  6. thedesolatesoul

    thedesolatesoul Expert Licensed User

    Yeah, some error messages might not be obvious.
     
Loading...