0

I use a parser called jsoup to parse html amd store it in a mysql database. The parser reads the files with an input stream. The problam is that some class en id atributes are given with class="". The parser cant find those atributes and returns a blank string. I tried to replace the " with \" using this function: http://www.fobit.com/index.php?article=Java%3A%20str_replace but here comes the problem. I cant give the search argument because """ gives a error. Using "\"" as argument gives no error but i t doesnt replace the "

2
Contributors
1
Reply
2
Views
4 Years
Discussion Span
Last Post by Shinedevil
1

\\" ?
had to do 3 backslashes since one went kapoof
But because \ is an escape character, you'll have to do a double \\ in order to replace " with \"

Votes + Comments
Thanks it worked
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.