Escape SQL Text

Escape SQL Strings so you can put it into a SQL string literal or variable and is still interpreted as a single text.

Only ' is escaped and they become two ''.

You can also unescape the text, '' becomes ' (and there is validation check if the string is valid). You can optionally put them inside '' as well.