From: Federico Leva Date: Fri, 9 Jan 2015 07:02:42 +0000 (+0100) Subject: Don't discourage usage of Html::element() X-Git-Tag: 1.31.0-rc.0~12743^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=5e93f8375877ec5ed0e81797b94b6b0e1ff7b249 Don't discourage usage of Html::element() Old advice from 2009 (7aa4a8f9), not quite useful nowadays. The preceding sentence already says that in absence of attributes the function may not do much. Change-Id: I4d276d6f42394fc09662ddfd7e1ffd13fb197bf6 --- diff --git a/includes/Html.php b/includes/Html.php index e0337463fd..93a1a044e9 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -198,8 +198,7 @@ class Html { /** * Returns an HTML element in a string. The major advantage here over * manually typing out the HTML is that it will escape all attribute - * values. If you're hardcoding all the attributes, or there are none, you - * should probably just type out the html element yourself. + * values. * * This is quite similar to Xml::tags(), but it implements some useful * HTML-specific logic. For instance, there is no $allowShortTag