Function __global->with_whitespace

Definitions

sources/templates.php

  • Display some raw text so that it is repeated as raw visually in HTML.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$in mixed No No required parameter N/A N/A Input, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping (string or Tempcode)
$using_textarea boolean No No False N/A N/A Whether to show using a textarea (more reliable to use clipboard to get from)
$using_codetag boolean No No False N/A N/A Whether to use a code tag (for monospaced font); only use if !$using_textarea

Returns

  • Output
  • Type: Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Display some raw text so that it is repeated as raw visually in HTML.
 *
 * @param  mixed $in Input, provided in plain-text format or as HTML via do_lang_tempcode/protect_from_escaping (string or Tempcode)
 * @param  boolean $using_textarea Whether to show using a textarea (more reliable to use clipboard to get from)
 * @param  boolean $using_codetag Whether to use a code tag (for monospaced font); only use if !$using_textarea
 * @return Tempcode Output
 */

function with_whitespace($in, bool $using_textarea = false, bool $using_codetag = false) : object