Is there a node, that would allow me to remove attributes from HTML?
Example:
<p class="c4">And some more text</p><p class="c1"></p><h1 class="c8" id="h.4wsj9miliye9">More text</h1><h2 class="c7" id="h.nl7fh4vyf8nf">And even more text</h2>
Would become: <p>And some more text</p><p></p><h1>More text</h1><h2>And even more text</h2>
Alternatively, is there a way to use DOM selectors to remove the attributes in a function?
Hi @Boris_Idesman, there is no existing node for this, but assuming your HTML is relatively simple you could use two Markdown nodes for the job. Check out this example:
The first node creates markdown without classes or any other attributes: