GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
cssesc(1) FreeBSD General Commands Manual cssesc(1)

cssescescape text for use in CSS string literals or identifiers

cssesc [-i | --identifier string]
[-s | --single-quotes string]
[-d | --double-quotes string]
[-w | --wrap string]
[-e | --escape-everything string]
[-v | --version]
[-h | --help]

cssesc escapes strings for use in CSS string literals or identifiers while generating the shortest possible valid ASCII-only output.

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.
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.
Make sure the output is a valid CSS string literal wrapped in quotes. The type of quotes can be specified using the -s | --single-quotes or -d | --double-quotes settings.
Escape all the symbols in the output, even printable ASCII symbols.
Print cssesc's version.
Show the help screen.

The cssesc utility exits with one of the following values:

cssesc successfully escaped the given text and printed the result.
cssesc wasn't instructed to escape anything (for example, the --help flag was set); or, an error occurred.

Print an escaped version of the given text.
Print an escaped version of the text that gets piped in.

cssesc's bug tracker is located at <https://github.com/mathiasbynens/cssesc/issues>.

Mathias Bynens <https://mathiasbynens.be/>

<https://mths.be/cssesc>

August 9, 2013

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.