Created
December 2, 2021 19:45
-
-
Save michael-simons/65de40bed04a45c2502898da8789b2ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///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