PHP class helper to generate HTML tags