I have html as character in R and trying to convert it to JSON using jsonlite
package.
toJSON("<span>ASD</span>")
It returns <\/span>
instead of </span>
["<span>ASD<\/span>"]
cat(toJSON("<span>ASD</span>"))
also returns the same conversion