Hello,
I'm writing a newsletter poster for a website. I have some
html news items which I want to turn into plain text and prettify
before emailing it.
Now, i have found wordwrap and strip_tags so the only problem
remaining is the links. Below you see what I like to see, but
I haven't got a clue how to get there.
$html = '<p>My <a href="http://go.there/stuff">link somewhere</a>.</p>';
doSomeMagic($html);
echo $html;
After doSomeMagic I'd like the echo to look like this:
My link somewhere[1].
[1] http://go.there/stuff
That is, in the text I want an reference, and below the entire paragraph
i want a link index.
I'd be grateful for any hints how to get there.
--
Fredrik Jonson