Content-only strip
Content-only security profile strips block directives from untrusted regions while keeping safe text.
CLI htx compile --security-profile content-only WASM playground uses the html profile only; preview shows CLI output.
::card [Title]
Body text
::
HTX source
::card [Title]
Body text
::
{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "::card [Title]",
"trust": "untrusted",
"loc": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 3,
"offset": 2
}
}
}
],
"trust": "untrusted",
"loc": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 3,
"offset": 2
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "Body text",
"trust": "untrusted",
"loc": {
"start": {
"line": 2,
"column": 1,
"offset": 15
},
"end": {
"line": 2,
"column": 12,
"offset": 26
}
}
}
],
"trust": "untrusted",
"loc": {
"start": {
"line": 2,
"column": 1,
"offset": 15
},
"end": {
"line": 2,
"column": 12,
"offset": 26
}
}
},
{
"type": "paragraph",
"children": [
{
"type": "text",
"value": "::",
"trust": "untrusted",
"loc": {
"start": {
"line": 3,
"column": 1,
"offset": 27
},
"end": {
"line": 3,
"column": 3,
"offset": 29
}
}
}
],
"trust": "untrusted",
"loc": {
"start": {
"line": 3,
"column": 1,
"offset": 27
},
"end": {
"line": 3,
"column": 3,
"offset": 29
}
}
}
]
}