original_string: public function html_with_label($with_script=1)
  	{
  		$s = $this->html();
      if ( !empty($s) ){
  			if ( BBN_IS_DEV ){
          $title = str_replace('"', '', print_r (bbn\str::make_readable($this->cfg), true));
  			}
  			else if ( isset($this->attr['title']) ){
  				$title = $this->attr['title'];
  			}
        else{
  				$title = isset($this->label) ? $this->label : '';
  			}
        if ( !isset($this->cfg['field']) || $this->cfg['field'] !== 'hidden' ){
    			$s = '<label class="bbn-form-label" title="'.$title.'" for="'.$this->attr['id'].'">'.$this->label.'</label><div class="bbn-form-field">'.$s.'</div>';
        }
  		}
  		return $s;
  	}
code: public function html_with_label($with_script=1)
  	{
  		$s = $this->html();
      if ( !empty($s) ){
  			if ( BBN_IS_DEV ){
          $title = str_replace('"', '', print_r (bbn\str::make_readable($this->cfg), true));
  			}
  			else if ( isset($this->attr['title']) ){
  				$title = $this->attr['title'];
  			}
        else{
  				$title = isset($this->label) ? $this->label : '';
  			}
        if ( !isset($this->cfg['field']) || $this->cfg['field'] !== 'hidden' ){
    			$s = '<label class="bbn-form-label" title="'.$title.'" for="'.$this->attr['id'].'">'.$this->label.'</label><div class="bbn-form-field">'.$s.'</div>';
        }
  		}
  		return $s;
  	}
code_tokens: public function html_with_label ( $ with_script = 1 ) { $ s = $ this -> html ( ) ; if ( ! empty ( $ s ) ) { if ( BBN_IS_DEV ) { $ title = str_replace ( '"' , '' , print_r ( bbn \ str :: make_readable ( $ this -> cfg ) , true ) ) ; } else if ( isset ( $ this -> attr [ 'title' ] ) ) { $ title = $ this -> attr [ 'title' ] ; } else { $ title = isset ( $ this -> label ) ? $ this -> label : '' ; } if ( ! isset ( $ this -> cfg [ 'field' ] ) || $ this -> cfg [ 'field' ] !== 'hidden' ) { $ s = '<label class="bbn-form-label" title="' . $ title . '" for="' . $ this -> attr [ 'id' ] . '">' . $ this -> label . '</label><div class="bbn-form-field">' . $ s . '</div>' ; } } return $ s ; }
docstring: Returns the element with its label and inside a div
  
  @return string
docstring_tokens: Returns the element with its label and inside a div