Skip to content

Instantly share code, notes, and snippets.

@michael-simons
Created December 2, 2021 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-simons/65de40bed04a45c2502898da8789b2ae to your computer and use it in GitHub Desktop.
Save michael-simons/65de40bed04a45c2502898da8789b2ae to your computer and use it in GitHub Desktop.
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS org.jsoup:jsoup:1.14.3
//JAVA_OPTIONS -ea
import org.jsoup.parser.Parser;
public class f {
public static void main(String...a) {
var s1 = "🚀 Features";
var s2 = "\uD83D\uDE80 Features";
var s3 = Parser.unescapeEntities("🚀 Features", true);
System.out.println(s1);
System.out.println(s2);
System.out.println(s3);
assert s1.equals(s2) && s2.equals(s3);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment