Nu blijkt het echter op de linux webserver niet te werken.
Iemand een idee?
p.s. ik al 3x geprobeer met <script>, <code> maar iedere keer krijg ik de code niet in een code venster. wellicht een idee omdat tussen titel en tekst waar ook B I U S link en quote staat te zetten.
[quote="http://stackoverflow.com/questions/20908100/invisible-character-at-the-end-of-line-using-line-break"]
If you are unsure about whether a single \n or \r could occur (and either is a valid line end), or possibly in combination with the other, here is a belt-and-suspenders approach:
replace all \n\r and all \r\n combos with \n alone.
replace all remaining \r with \n.
replace all \n with <br/>
with
string = string.replace(/\r?\n\r?/g, '\n');
string = string.replace(/\r/g, '\n');
string = string.replace(/\n/g,'<br/>');
Written out as separate instructions for clarity. Instead of first changing to \n, you can also immediately insert <br/>s, of course.
[/code]
[size=xsmall]Toevoeging op 06/03/2014 10:31:38:[/size]
>> p.s. ik al 3x geprobeer met <script>, <code> maar iedere keer krijg ik de code niet in een code venster. wellicht een idee omdat tussen titel en tekst waar ook B I U S link en quote staat te zetten.