3068 Posts in 868 Topics by 650 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 124 Views |
-
$dataobject->Content cutting off with special chars?

23 November 2012 at 2:37am
Hey guys,
I'm looping through a flat data file and pushing the content into new data objects like so:
$Property = new DetailPropertyPage();
$Property->Content = htmlspecialchars($dataFileRow[25]);
$Property->writeToStage('Stage');
$Property->publish('Stage', 'Live');The content is consistently cutting off at the same point. When I inspect the data in the flat file, it's cutting off as soon as it hits an un-encoded pound (£) symbol. So I added htmlspecialchars(); as demonstrated above but this hasn't solved the problem. Does anyone know what's going wrong here?
Thanks,
Robbie
| 124 Views | ||
|
Page:
1
|
Go to Top |

