Question: I have a WordPress website with Ad Inserter plugin.

This plugin has different blocks where I can insert a php code to show it in different position of the post (e.g. after title, after paragraph 1, after content...)

I have a php script and I want to print it in the post 2 times in 2 different positions. The problem is that I prefer to declare `sample` variable one time only.

So I created 2 blocks:

BLOCK 1:

```
<?php
$sample="test";
print $sample ?>

```

BLOCK 2:

```
<?php
print $sample ?>

```

The first block is correctly rendered in the page but the second one shows a blank space instead of `test`. If I copy the two codes in one block only, everything works but I need to show them in two different positions.

This is a basic WordPress/PHP question. 
How do I edit the second block without declaring `sample` variable again?

Answer: 
Not an in-DOORS answer (ha, I slay me!), but what I use is PureText. Install the little program in your Windows system tray, and assign a hotkey combo. Then, instead of Ctrl+V for paste, when I press Win+V the clipboard contents are converted to plain text, and then the clipboard is pasted. (That last sentence is important to note - the clipboard itself is altered. You won't be able to paste the formatted version somewhere else.)

Similar options are probably available on other systems, of course. It's no longer than pressing Ctrl+V, so it satisfies my needs.

<http://stevemiller.net/puretext/>
I don't know how to do this when pasting, but you can use a little DXL to change it afterwards, which is especially useful when the text contains formatting that you cannot remove from within DOORS:

```
Buffer temp = create
temp = obj."Object Text"
string s = tempStringOf temp
obj."Object Text"= s
delete temp

```

This can easily be extended so that your script runs on the entire module, or all selected objects.