Love beautiful code? We do too.
hoclaptrinh bắt đầu chủ đề từ 6 năm trước
@Học lập trình ·
Các bác cho em hỏi chút với ạ?
Ở trình duyệt thì có hàm
document_element.textContent = "html";
Vậy thì ở server làm sao để render html thành dạng text được ạ? Em xin cảm ơn ạ!
Unpublished comment
Viết câu trả lời
09/10/2017 14:48
Bạn set response header 'content-type' là 'text/plain' nhé.
bắt đầu chủ đề từ ·
·
@ ·
09/10/2017 14:48
Bạn set response header 'content-type' là 'text/plain' nhé.