restructure recipes

This commit is contained in:
Amy de Buitléir 2023-11-28 16:13:05 +00:00
parent 7ff82d6fb6
commit 3d00d41153
36 changed files with 13618 additions and 11920 deletions

View file

@ -0,0 +1,12 @@
= In a Python script
[source,python,linenums]
.Script
....
include::my-script.sh[]
....
.Output
....
$# ./my-script.sh
....

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)