I got JSON response from server parsing json response i got content which contains <p> </p> and <br /> how to replace all with blank or white space?
I got JSON response from server parsing json response i got content which contains
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can just use the
replacefunction? Or is that too easy..For example:
I don’t know how your json looks like before this replacement. But it could of course be possible that you have
<br />instead of<br />. In that case you have to of course change the replacement tags.It could also be possible you will have to use regexes. I don’t really know off the top of my head how this is done, but you can Google this