Adding a string that has quotes in it to a StringBuilder
I have a string builder object and I am appending some values to it, one of the values I need to add is this:
but when I copy-paste it and add it to the stringbuilder object, it gives error and thinks that sring parameter is not completed yet...I also tried to put a "@" at the beginning of it, but still the same problem.
" characters need to be escaped. For normal strings, use \", for @ strings use "".
e.g. "<Literal datatypeIRI=\"&rdf;PlainLiteral\">"
You need to escape the embedded ":