transform.html

Transforms HTML and substitutes internal link scheme aspects.

Examples

Default parameters

<f:transform.html selector="a.href" onFailure="removeEnclosure">
  <a href="t3://page?uid=1" class="home">Home</a>
</f:transform.html>

Output:

<a href="https://example.com/home" class="home">Home</a>

Inline notation

{content -> f:transform.html(selector:'a.href', onFailure:'removeEnclosure')}

Arguments

selector

DataType
string
Default
‘a.href’
Required
false
Description
Comma separated list of node attributes to be considered

onFailure

DataType
string
Default
‘removeEnclosure’
Required
false
Description
Behavior on failure, either removeTag, removeAttr, removeEnclosure or null