charset: move html link function to common include
[sheet.git] / common.inc.plp
index 31c2c2270b71e209a20cf885fe0363ad623066e6..bfeb2449fc652a29d718e43595899d72e0cfc8bd 100644 (file)
@@ -166,3 +166,11 @@ EOT
        };
 }
 
+sub showlink {
+       my ($title, $href, $selected) = @_;
+       return sprintf(
+               $selected ? '<strong>%s</strong>' : '<a href="%2$s">%s</a>',
+               EscapeHTML($title), EscapeHTML($href)
+       );
+}
+