Function __global->clean_html_title

Definitions

sources/site2.php

  • Turn an HTML title, which could be complex with images, into a nice simple string we can use in <title> and ;.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$title string No No required parameter N/A N/A The relative (to the software's base directory) path to the page (e.g. pages/comcode/EN/example.txt)

Returns

  • Fixed
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Turn an HTML title, which could be complex with images, into a nice simple string we can use in <title> and ;.
 *
 * @param  string $title The relative (to the software's base directory) path to the page (e.g. pages/comcode/EN/example.txt)
 * @return string Fixed
 */

function clean_html_title(string $title) : string