I'm working on my applescript right now and I'm stuck here.. Lets take this snippet as an example of html code
<body><div>Apple don't behave accordingly <a href = "http://apple.com>apple</a></div></body>
What I need now is to return the word without the html tags. Either by deleting the bracket with everything in it or maybe there is any other way to reformat html into plain text..
The result should be:
Apple don't behave accordingly apple
Thought I would add an extra answer because of the problem I had. If you want UTF-8 characters to not get lost you need:
You basically need to add the
<meta charset=\"UTF-8\">
meta tag to make sure textutil sees this as an utf-8 document.How about using textutil?