Specification
What the Llama strip HTML pass actually performs
The operation is a fixed chain of six replacements applied in order. Script elements are removed with their contents, style elements are removed with their contents, anything else matching a tag shape is removed, and then four entity substitutions run.
Order matters and is worth stating, because it produces two behaviours a user would not predict. The script and style passes run first, which is why their contents are removed rather than orphaned. The entity passes run last, which is why escaped markup such as an encoded div tag is decoded into literal angle brackets after tag removal has already finished, and is therefore not stripped a second time.
There is no configuration surface. No whitelist, no attribute handling, no comment toggle and no line break setting. Execution is local, with no transmission, no storage, no length ceiling and no usage allowance.