At the moment my best practice is to use a printf-like function to do escaping for me, it suffers the problems described in the article though.
At the moment my best practice is to use a printf-like function to do escaping for me, it suffers the problems described in the article though.