英文:
The html format of the content printed to the screen
问题
来自Whois Api返回的结果中有一个名为content的参数。当我将名为Content的参数反映到HTML屏幕上时,文本会并排书写。我试图在网站中像Whois一样做这个操作,我该如何做?请您的帮助。
我的HTML输出
来自API的值
在Whois网站上
英文:
There is a parameter named content in the result returned from Whois Api. When I reflect the parameter named Content to the screen with html, the text is written side by side. I am trying to do this as in Whois in website How can I do it? Please your help.
My html output
Value from API
In Whois webside
答案1
得分: 2
Wrap in the <pre>
tag to preserve the new line characters.
英文:
Wrap in the <pre>
tag to preserve the new line characters.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论