HTML5 Data Bindings Support Product Page

Answered

Maintaining line breaks when retrieving multiple paragraphs from mysql

Asked 30 Apr 2015 23:43:47
1
has this question
30 Apr 2015 23:43:47 Justin Mitchell posted:
I'm retrieving text from a mysql database that has a line break separating two paragraphs. When it is displayed on the web page it is removing the line break. I'm not sure how to add the line break in via php since code from the extension is retrieving the data via java. Is there a built in feature in the extensions that allows you to retrieve data with line breaks? I've looked through the data binding formatter and haven't seen a way to do this. As a side note, I've tried this from both mssql and mysql server with the same results. The data is being entered into the database via <textarea> field.Thanks in advance.

Replies

Replied 05 May 2015 11:46:34
05 May 2015 11:46:34 Teodor Kuduschiev replied:
Hello Justin,
The extension is not using java, but javascript.
If you wish ti display html tags from you database, then you need to insert the data as html: www.dmxzone.com/go/22176/rendering-html-preformatted-content-with-html5-data-bindings
Replied 05 May 2015 19:44:23
05 May 2015 19:44:23 Justin Mitchell replied:
Perfect. Thank you!

Reply to this topic