Post #2471858
2026-04-17 13:37 UTC
@82mhz@mastodon.bsd.cafe if you want an offline text-to-HTML-entities, you can use a perl one-liner:
$ echo andreas@example.net | perl -pe 's/(.)/"&#".ord($1).";"/ge' | …
such as
$ xsel -ob | perl -pe 's/(.)/"&#".ord($1).";"/ge' | xsel -ib
Perfect for a little shell-script/-function helper ☺
Replies (1)
-
@82mhz@mastodon.bsd.cafe 2026-04-17 14:13
@gumnos@mastodon.bsd.cafe That's neat, thanks!