I'm developing an extension for importing news from a csv file.
When I make the insert into the db, the string that contains the teaser is interrupted in corrispondence of the first apostrophe character.
I made the insert like that:
How can I escape a string in contao with its database astraction?PHP Code:
$this->Database
->prepare("INSERT INTO tl_news %s")
->set(array('teaser' => $myTeaser))
->execute()
Bookmarks