I have an app with fusion charts and I have to generate XML for him to render some graphs for users. But this XML string must be inline with no break lines and othes stuffs. But my query to retrieve graph data brings me an colunm with these break lines!
I tried this formatting on the string:
$txt = trim($txt);
$txt = str_replace("\r\n", " ", $txt);
$txt = preg_replace('~[\n|\r|\n\r|\r\n]{2,}~', " ", $txt);
This is an example of data with this problem:
- Eixo Inferior Entrada Com Camisa
- Montar As Calhas Aparafusadas Conforme Posição Anterior.
- Montar O Rodete Z15 - Ext. 1200.
- Manter A Identificação Na Peça.
Database: Oracle - Column Data Type: Varchar2