Code to Paste HTML as Plain Text
-
The program nicely pastes a copied HTML page as plain text, stripped back to the text-only content of the page.
Where can I find the code that does that conversion of an HTML page to the bare plain text?
Thanks.
-
-
Thanks, Claudia.
I should have been more precise. I have the latest source. Where in the source?
Thanks.
-
you are looking for a paste operation, in particular the SCI_PASTE message.
If you search for it in SciLexer project you will find one saying something likecase SCI_PASTE: Paste()and here we are, Paste (code in ScintillaWin.cxx) is the one you are interested in (well I assume you are interested in this function)
Cheers
Claudia -
Many thanks, Claudia. That’s it. Very much appreciated.
Cheers.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login