Update snippet to escape $ characters