commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Encodes HTML entities from input (file or stdin) so it's possible to directly past the result to a blog or HTML source file.
There is 1 alternative - vote for the best!
Encode HTML entities supporting UTF-8 input and output
For reverse, there's asc2xml
asc2xml < entitiesfile > utf8file
They come as a part of the html-xml-utils debian package.
PS. Tried to submit sample data, but the site autoconverted the non ascii to html entities. So a bit of imagination is needed.
If you can do better, submit your command here.
You must be signed in to comment.