Hi Niels,

On 7/10/07, Niels Grundtvig Nielsen
<niels.grundtvig.nielsen at brusselsairport.be> wrote:
> By careful selection, I ended up with three words set to "button"; the first
> was already "em", the last two "strong".
> <button><em>emphasis</em><strong>and
> strong</strong></button>
>
> How do I remove "button" without also removing "em" and "strong"?

I think the easiest way might be as follows:

  1. Select the `button` element.
  2. Select all the children of the `button` element (Select > Select
All Children).
  3. Copy the children (Ctrl+C).
  4. Select the `button` element again (Ctrl+<up arrow>).
  5. Paste the children to overwrite their parent.

This might be worthy of scripting as a general command (perhaps called
"shallow delete"); it would not be hard to do using the XXE macro
command language.

Take care,

    John L. Clark

-- 
PLEASE NOTE that this message is not digitally signed.  As a result,
you have no strong evidence that this message was actually sent by me.
 Upon request I can provide a digitally signed receipt for this
message or other evidence validating its contents if you need such
evidence.

Reply via email to