dolibarr 25.0.0-alpha
span

Return a string label (so on 1 line only and that should not contains any HTML) ready to be output on HTML page.

Return a string label (so on 1 line only and that should not contains any HTML) ready to be output on HTML page.To use text that is not HTML content inside an attribute, you can simply use only dol_escape_htmltag(). In doubt, use dolPrintHTMLForAttribute().

Parameters
string$sString to print
int$escapeonlyhtmltags1=Escape only html tags, not the special chars like accents.
Returns
string String ready for HTML output
See also
dolPrintText() ><?php echo dolPrintLabel($object->name); ?>