initial commit

This commit is contained in:
Amy de Buitléir 2023-06-11 20:42:53 +01:00
parent 78fd4cc737
commit de670f073f
2 changed files with 14 additions and 0 deletions

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)