| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 | .Dd August 9, 2013.Dt cssesc 1.Sh NAME.Nm cssesc.Nd escape text for use in CSS string literals or identifiers.Sh SYNOPSIS.Nm.Op Fl i | -identifier Ar string.br.Op Fl s | -single-quotes Ar string.br.Op Fl d | -double-quotes Ar string.br.Op Fl w | -wrap Ar string.br.Op Fl e | -escape-everything Ar string.br.Op Fl v | -version.br.Op Fl h | -help.Sh DESCRIPTION.Nmescapes strings for use in CSS string literals or identifiers while generating the shortest possible valid ASCII-only output..Sh OPTIONS.Bl -ohang -offset.It Sy "-s, --single-quotes"Escape any occurences of ' in the input string as \\', so that the output can be used in a CSS string literal wrapped in single quotes..It Sy "-d, --double-quotes"Escape any occurences of " in the input string as \\", so that the output can be used in a CSS string literal wrapped in double quotes..It Sy "-w, --wrap"Make sure the output is a valid CSS string literal wrapped in quotes. The type of quotes can be specified using the.Ar -s | --single-quotesor.Ar -d | --double-quotessettings..It Sy "-e, --escape-everything"Escape all the symbols in the output, even printable ASCII symbols..It Sy "-v, --version"Print cssesc's version..It Sy "-h, --help"Show the help screen..El.Sh EXIT STATUSThe.Nm cssescutility exits with one of the following values:.Pp.Bl -tag -width flag -compact.It Li 0.Nmsuccessfully escaped the given text and printed the result..It Li 1.Nmwasn't instructed to escape anything (for example, the.Ar --helpflag was set); or, an error occurred..El.Sh EXAMPLES.Bl -ohang -offset.It Sy "cssesc 'foo bar baz'"Print an escaped version of the given text..It Sy echo\ 'foo bar baz'\ |\ cssescPrint an escaped version of the text that gets piped in..El.Sh BUGScssesc's bug tracker is located at <https://github.com/mathiasbynens/cssesc/issues>..Sh AUTHORMathias Bynens <https://mathiasbynens.be/>.Sh WWW<https://mths.be/cssesc>
 |