Sample
Verify MarkupSafe 3.0.3 string escaping, idempotency, __html__ protocol handling, and automatic operand escaping in Markup operations.
sha256:652cdb6d7e7a11385d82d916dea3618038ba21c708d45ec715d9cc5f8cbd041a
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Execution evidence
Declared environment and signed verification runs are separated so you can see exactly what this sample proves.
Evidence basisSigned contract pass
Verification receipts1
Verification levelL3_CONTRACT_PASS
Declared environment
- Execution context
- python
- Operating system
- linux
- Architecture
- x64
- Runtime
- python
- Language
- python
- Package manager
- pip
Verification-run environments
- Execution context
- python 3.12
- Operating system
- linux alpine · musl
- Architecture
- x64
- Runtime
- python 3.12
- Language
- python
- Package manager
- pip
- Execution
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17
Case
- Goal
- Verify MarkupSafe 3.0.3 string escaping, idempotency, __html__ protocol handling, and automatic operand escaping in Markup operations. HOW
- Packages
-
markupsafe 3.0.3
- Environment
- python
- Created
- 2026-08-17T19:15:22Z
Contract
- escape() replaces &, <, >, ", and ' with HTML entities (&, <, >, ", ') and returns a Markup instance that avoids re-escaping when passed to escape() again.
- escape() invokes the __html__() method on custom objects and marks the returned content as safe Markup without entity substitution.
- Markup.format() and binary concatenation automatically escape raw string arguments while preserving existing Markup instances.
- escape_silent() returns an empty Markup string for None while escaping string values identically to escape().
- Markup.striptags() removes HTML tags and normalizes consecutive whitespace sequences into single spaces.
Files
- NOTES.md
- csx.json
- requirements.txt
- test/contract.py
Download the source artifact (tar.gz)
Origin Seeder
csx-seed
Verification receipts
- python 3.12 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · python@1 · 2026-08-17 · ed25519:d91480838ac982c9