Ok, also im Grunde benutze ich den Fckeditor als eine Möglichkeit für meinen Benutzer, einige Informationen einzugeben. Wenn es in der DB gespeichert ist, wird es wie so gespeichert,Datenbank Blob hält Mulline HTML-Code, wie kann ich dies in eine Zeile mit PHP konvertieren
<p> </p>
<div style=\"margin: 0in 0in 10pt\"><b><span style=\"color: #666666\">Test Title</span></b><span style=\"color: #666666\"> <br />
Address goes here <br />
This is some lengthy text about the location. This is some lengthy text about the location. This is some lengthy text about the location. This is some lengthy text about the location. This is some lengthy text about the location. This is some lengthy text about the location.</span></div>
Wie auch immer, wenn ich Ausgabe dieser Text in eine Funktion gesendet wird, die es braucht, und erzeugt eine punktgenaue auf einer Karte google und Text geht innen des Popup-Fensters. Das Problem, das ich in laufen lasse, ist, dass, wenn die PHP ist die Javascript-Funktion gibt es nennen wie folgt aussieht,
showAddress(" <p> </p>
<div style=\"margin: 0in 0in 10pt\"><b><span style=\"color: #666666\">Test Title</span></b><span style=\"color: #666666\"> <br />
Address goes here <br />
This is some lengthy text about the location. This is some lengthy text about the location. This is some lengthy text about the location. This is some lengthy text about the location. This is some lengthy text about the location. This is some lengthy text about the location.</span></div>");
Der Raum, nachdem die Zeilenumbrüche und im Grunde, wenn Sie die Eingabetaste drücken verursacht das Javascript mit einem ‚ungekündigten zu beenden Zeichenfolgenliteral '.
Danke,
Levi
Oh wow, ich habe nicht wirklich die Verbindung gemacht, dass ein Newline eingefügt wurde. Ich hätte auch nicht gedacht, dass Sie Newline-Zeichen ersetzen können, die in Javascript mit PHP gemacht werden. – Levi