Re: HTML to text in field

2018-08-09 Thread Richmond Mathewson via use-livecode
Hmm . . . On 9/8/2018 4:21 pm, David V Glasgow via use-livecode wrote: Thanks Richmond, I will mess about with your suggestions. It's always much appreciated when someone takes the time to suggest a complete handler. But …. I want more! * **Just as long as I can call you Oliver Twist. :)*

Re: HTML to text in field

2018-08-09 Thread Richmond Mathewson via use-livecode
Possibly as it was lifted verbatim from "elsewhere'. :/ Although it works the way it is in LC 8.1.10. Richmond. On 9/8/2018 4:31 pm, Richard Gaskin via use-livecode wrote: Richmond Mathewson wrote: >put (URL ("file:" & it),"UTF8") into CHEESE Was uniDecode intended there? --

Re: HTML to text in field

2018-08-09 Thread Stephen MacLean via use-livecode
Hi David, I’m working on something thing similar at the moment (although I’m stripping out almost everything except for basic HTML formatting). I too found that nugget by JLG and had the similar results. I’ve also looked at using XML and regex. The problem with HTML is that while it’s a

Re: HTML to text in field

2018-08-09 Thread David V Glasgow via use-livecode
D’OH! > On 9 Aug 2018, at 2:23 pm, Klaus major-k via use-livecode > wrote: > > > "replacetext ()" is a FUNCTION and not a handler! :-) ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and

Re: HTML to text in field

2018-08-09 Thread Richard Gaskin via use-livecode
Richmond Mathewson wrote: >put (URL ("file:" & it),"UTF8") into CHEESE Was uniDecode intended there? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web

Re: HTML to text in field

2018-08-09 Thread Klaus major-k via use-livecode
Hi David, > Am 09.08.2018 um 15:21 schrieb David V Glasgow via use-livecode > : > > Thanks Richmond, I will mess about with your suggestions. It's always much > appreciated when someone takes the time to suggest a complete handler. > But …. I want more! Can you see anything wrong with this?

Re: HTML to text in field

2018-08-09 Thread David V Glasgow via use-livecode
Thanks Richmond, I will mess about with your suggestions. It's always much appreciated when someone takes the time to suggest a complete handler. But …. I want more! Can you see anything wrong with this? replaceText (ttemp, "<*>", "|") or have a clue about the error message? “button

Re: HTML to text in field

2018-08-09 Thread Richmond Mathewson via use-livecode
Well, although this might sound a bit goofy, how about just bunging your html text into a scrolling list field and every time you came across a moving down to a new line? This works: on mouseUp set the text of fld "SLF1" to empty answer file "Choose an HTML file to import" if the

HTML to text in field

2018-08-09 Thread David V Glasgow via use-livecode
Hello folks, I am having an interesting time (MacOS 10.13.5 LC 8.1.9) trying to load some HTML files (≤ 5 ish MB). Most of them will be lists or tables, generated by various users on various systems. I don’t want to retain any of the formatting, except line endings, so I would be happy for