mirror of
https://codeberg.org/mhwombat/nix-book.git
synced 2026-05-11 08:15:53 +08:00
initial commit
This commit is contained in:
parent
7761303cd4
commit
7ff82d6fb6
4 changed files with 50 additions and 0 deletions
8
source/recipes/python-nixpkg/shell/Main.py
Normal file
8
source/recipes/python-nixpkg/shell/Main.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue