本文介绍了如何在XML属性中使用换行符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为:description的属性,我想在其中添加以下内容并换行:

I have a attribute called: description and I want to have the following in it with new lines:

如何在xml中为其创建新行?

How do I create a new line for it in xml?

推荐答案

基本上,您想插入CRLF:

Basically you want to insert CRLF:

CR代码:
LF代码:


CR code: 
LF code: 


<myelement description="line1&#13;&#10;line2&#13;&#10;line3"/>

这篇关于如何在XML属性中使用换行符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 12:10
查看更多