method

quote_if_necessary

quote_if_necessary(text, charset)
public

Quote the given text if it contains any "illegal" characters