Htmlentities

The function was not coherent with PHP htmlentities() and created errors because it was sometimes called with only one parameter.