아래 질문을 textarea를 사용하여 추가했습니다.추가 된 값을 정확한 형식으로 Angularjs로 표시하는 방법은 무엇입니까?
What will be the output of the program?
String x = new String("xyz");
String y = "abc";
x = x y;
How many String objects have been created?
하지만 난 내가 What will be the output of the program? String x = new String("xyz"); String y = "abc"; x = x y; How many String objects have been created?
(같은 라인에있는 질문)로 본 다른 페이지에서 추가 질문을 나열 할 때.
내가 백엔드에서 점점 오전 응답은 내가 (↵) 기호를 입력 얻고 내 대답에 "question: "What will be the output of the program?↵↵String x = new String("xyz");↵String y = "abc";↵x = x y;↵↵How many String objects have been created?"
이다 그러나 나는 올바른 형식으로 질문을 표시하기 위해 도움이 필요합니다.
사용 CSS를 ~'white-space : pre;'~ https://developer.mozilla.org/en-US/docs/Web/CSS/white-space#Values – Phil