On Sunday, 13 March 2011 at 17:16, john lewis wrote:
One bit of the Kingsclere History website is a list of surnames people
> have an interest in and contact addresses for other people to use but
> the email addresses are encrypted.
> 
> part of the html code looks like this:
> 
> <td><p class="bodytext">HAYWARD</td>
> <td><p class="bodytext"><a
> href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#106;&#111;&#121;&#115;&#103;&#101;&#110;&#101;&#97;&#64;&#115;&#104;&#97;&#119;&#46;&#99;&#97;&#46;">&#74;&#111;&#121;&#32;&#70;&#114;&#101;&#110;&#99;&#104;</a><br><a
> href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#66;&#97;&#114;&#98;&#97;&#114;&#97;&#77;&#97;&#108;&#108;&#121;&#111;&#110;&#64;&#108;&#101;&#119;&#109;&#97;&#108;&#46;&#99;&#111;&#46;&#117;&#107;">&#66;&#97;&#114;&#98;&#97;&#114;&#97;&#32;&#77;&#97;&#108;&#108;&#121;&#111;&#110;</a></td>
>  
> 
> I don't know what software was used to set it up, probably some windows
> based gui website design tool.
> 
> Does anyone have a clue as to how I can decode the page so I can edit?
> it. The original webmaster is unavailable for the moment so cannot ask
> what software he used. 
That looks like bog-standard HTML/XML entities, with 
"&#109;&#97;&#105;&#108;&#116;&#111;&#58;" being equivalent to "mailto:"; - 
you'll note that each entity consists of & followed by # then a number which 
indicates the character code (from ASCII?) followed by ; to terminate the 
expression.

if you want a quick decode you can use php:

cat file_containing_html | php -r "print 
html_entity_decode(file_get_contents('php://stdin'));"

-- 
Daniel Llewellyn
--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------

Reply via email to