Using a functional web language called Links, currently under development at Edinburgh university... http://groups.inf.ed.ac.uk/links/
page <#>{input => fun (x) {page <a l:href="{page <#>{stringToXml(x)}</#>}">Click Here</a>}}</#>
All the XHTML is totally customisable if I want it to be, just keeping the code as short as possible here. Uses no libraries or anything, that's just the basic language.