I have tried lots of different ways, and using many diffent PHP and JS functions to try to achieve this. Hoe to i turn this json object ;
"lines" : ["text line 1<br/>","text line 2<br/>","text line 3<br/>","text line 4<br/>"]
插入此字符串, 这样我可以添加到 HTML div
text line 1<br/> text line 2<br/> text line 3<br/> text line 4<br/>
不,引号,括号或其他什么的。
在最简单的表格里,我只有字串;
lines = JSON.stringify(obj.lines)
但以上产出、括号、引号、逗号
对不起,如果这是一个简单而愚蠢的问题,但是我(现在结束(barressed!))到处寻找一个简单的答案。没有什么是突出的。