Grazie Klaus!!!
You were really kind and brilliant

!
I tried your solution and would be fine for other uses but not for the test I'm doing.
Let me explain. I need the
exact html source of the selection of the text of the html page ...
We proceed step by step. I used your code this way:
Code: Select all
on mouseUp
## -----------------------------------------------
## (c) Klaus The Genius
## Codice rimasticato ignobilmente da Mariasole ;)
## -----------------------------------------------
put the clipboarddata["html"] into tHtml
set the htmltext of the templatefield to tHtml
put the htmltext of the templatefield into aVariable
put aVariable into field "fBrowser"
reset the templatefield
end mouseUp
1) I go on the usual page
http://en.wikipedia.org/wiki/Bart_King
2) I select text and copy:
John Barton "Bart" King (October 19, 1873 – October 17, 1965) was an American cricketer, active in the late 19th and early 20th centuries
3) I press the button (with the Genius Klaus Code] and here is the html that returns
Code: Select all
<p spaceabove="5" spacebelow="5"><b><font size="16">John Barton</font></b><font size="16"> "<b>Bart</b>" <b>King</b> (October 19, 1873 – October 17, 1965) was an American </font><a name="/wiki/Cricket"><u><font size="16" color="#0000FF">cricketer</font></u></a><font size="16">, active in the late 19th and early 20th centuries. </font></p>
<p>�</p>
But the real HTML selection code of the web page is:
Code: Select all
<b>John Barton</b> "<b>Bart</b>" <b>King</b> (October 19, 1873 – October 17, 1965) was an American <a href="http://en.wikipedia.org/wiki/Cricket" title="Cricket">cricketer</a>, active in the late 19th and early 20th centuries.
From what I understand, but consider that I am a ignorant beginner

, (so do not laugh

), LC does his "interpretation" of HTML ...
Do you think there is a solution to have the exact html string selection?
Davvero grazie e complimenti!
Mariasole
=^..^=