때로는 JSON을 구문 분석 할 때 영어 내부의 이중 인용문이 발생하여 오류가 발생합니다. 다음과 같이 JSON을 탈출 할 수 있습니다.
public static string htmlescape (String Input) {if (isempty (inputy (input)) {return input;} input = input.replaceall ( "&", "&"); input = input.replaceall ( "<", "<"); input = input.replaceall ( ">"> "); input.replaceall (input.replaceall (input.replaceall);"); ""); input = input.replaceall ( "", ""); input = input.replaceall ( " '", "" ""); // IE는 당분간 단일 견적 엔티티 이름을 지원하지 않지만 당분간 단일 견적 엔티티 번호는 엔티티 번호로 빠져 나가고 다른 문자가 엔티티 이름으로 빠져 나옵니다. 입력 = input.replaceall ( "/" "," "); // 이중 인용문도 피해야합니다. "<br/>"); ///n 필터링은 <및>의 필터링을 필터링해야하므로 <br/> return input;}.위의 JSON 분석에 대한 솔루션은 영어 이중 인용문으로 오류를보고합니다. 나는 당신이 당신에게 참조를 줄 수 있기를 바랍니다. 그리고 당신이 wulin.com을 더 지원할 수 있기를 바랍니다.