For doubled single quotes '', add another one so '''.

For $ which happen quite usually in shell, add '' just before. It becomes ''$.