script to dynamically generate the hints list

Olivier Pérès olivier.peres at laposte.net
Wed Sep 17 02:44:49 PDT 2003


Jeroen Coumans a écrit :
> Just a minor bug: you have a function htmlclean. This is great, but can 
> you modify it so it converts /all/ < and > to < > ? There's a 
> problem with the last hint which has two e-mail adresses and only the 
> first is converted.

    Ooops. I kinda forgot an option to sed. Here is the correct version:

function htmlclean
{
     # replaces '<' and '>' with the corresponding entities so that they
     # can appear in documents (useful for the authors' email addresses).

     echo `echo $1 | sed -e 's/>/\>/g' -e 's/</\</g'`
}

    Olivier.




More information about the website mailing list