Terry Vogelaar wrote:

> Does anyone know if there is an easy way to convert HTML to Jade from
> within a LiveCode script?
>
> I want to distill information from a website for personal use. But
> HTML tags sometimes do and sometimes don’t have an end tag, and if
> they do, they don’t have to be nested properly. So it can be very
> tedious to get to the right content. Since this is much easier to
> use Jade, I often find myself copying the HTML to the left field on
> http://html2jade.aaron-powell.com <http://http//html2jade.aaron-powell.com> and manually convert it to Jade to copy the result back to
> my LiveCode stack.
>
> I suspect there is a better, more automated solution I am not aware
> of.

If this is for content scraping there are likely easier ways than translating HTML to Jade only to translate Jade into something usable in LiveCode.

For example, for many uses HTML content can strip tags as simply as:

   set the htmlText of the template field to tSomeHtml
   put the text of the templateField into tSomeText


Can you tell us more about the goal you're looking to achieve?

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 ____________________________________________________________________
 ambassa...@fourthworld.com                http://www.FourthWorld.com


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to