You cannot nest single quotes within single quotes. You can nest double quotes within double quotes by escaping them though.
The best you can do with single quotes is to use '\'' wherever you need an embedded single quote.
That's a single quote to end the single quoted string. An unquoted, but escaped, single quote. And a single quote to start the next single quoted string.