initial commit

This commit is contained in:
Amy de Buitléir 2023-06-13 21:14:07 +01:00
parent 488af7abac
commit db6fb2e69c
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,3 @@
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p cowsay
cowsay "Pretty cool, huh?"

View file

@ -0,0 +1,11 @@
#! /usr/bin/env nix-shell
#! nix-shell -i python3 -p python3Packages.html-sanitizer
from html_sanitizer import Sanitizer
sanitizer = Sanitizer() # default configuration
original='<span style="font-weight:bold">some text</span>'
print('original: ', original)
sanitized=sanitizer.sanitize(original)
print('sanitized: ', sanitized)