added escaping of ' character into fragmentsService