Add abil. to replace value of attributes in presets

This commit is contained in:
Kiryl
2022-09-05 17:19:31 +03:00
parent 7cef389ba4
commit 3fcff462d3
3 changed files with 23 additions and 9 deletions

View File

@@ -81,11 +81,17 @@
"preset_name": "attr_replacer",
"rules": [
{
"attr": "xlink:href",
"attr": {
"name": "xlink:href",
"value": ".*"
},
"condition": {
"tags": ["^img$"]
},
"attr_to_replace": "src"
"attr_to_replace": {
"name": "src",
"value": null
}
}
]
},