Structural replace : remove HTML tags but keep content

Hi,

I would like to remove some tags in my document but keep content.

Is there a way to do it with the structural search and replace?

For instance, I want to replace:
<section id="test"><p>bla bla/p> text</section>

By:
<p>bla bla/p> text


I have found examples to work with attributes and the tag name itself but I can't find a way to work with the tag content.

Thanks,
Fabio Chelly

1 comment
Comment actions Permalink

please try

<section $id$="$value$">$text$</section>

as search template and

$text$

as replace one... Minimum count for $id$ is 0, $value$ - 1, $text$ - 1

Not the best solution may be, but it works for me

0

Please sign in to leave a comment.