remove tag but keep inner text

Trying to strip out the button tag but leave behind the inner text.

Save This Text

Xpath help appreciated. Thanks!

Hi Marc,

This is not currently possible with Full-Text RSS. But you might have luck with a string replacement workaround:

find_string:
replace_string:
find_string:
replace_string:

If the button element is not always the same, you can try this hackier approach which converts the button tag to a self-closing (void) HTML element. For example:

find_string: <button
replace_string: <img style=“display:none”
find_string:
replace_string:

This should make the parser treat the tag separately from its inner text, and the style attribute should make it get removed entirely.

Hope that’s some help.

Thanks, Keyvan.

Looks like I can use either of these solutions:

find_string: <button
replace_string: <img style=“display:none”

replace_string(<button) : <img style=“display:none”
replace_string(</button>) :

For some reason adding this to #1 causes it to not work:
find_string: </button>
replace_string:

But either 1 or 2 is fine for me, as </button> is stripped in both cases. BTW – I’m on 3.6

Thanks much!