Function __global->check_xhtml_webstandards

Definitions

sources/view_modes.php

  • Takes the output from the scripts, and check the XHTML for conformance, then echoes the page, plus the webstandards checking results.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$out string No No required parameter N/A N/A The XHTML to check
$display_regardless boolean No No False N/A N/A Display XHTML output regardless of whether there was an error or not
$preview_mode integer No No 0 0 1 2 N/A Whether we are opening up an XHTML-fragment in a preview box (0 means no, 1 means yes, 2 means we are asking for additional manual check information)
$ret boolean No No False N/A N/A Whether to return Tempcode

Returns

  • Returned result (won't return it $ret is false)
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Takes the output from the scripts, and check the XHTML for conformance, then echoes the page, plus the webstandards checking results.
 *
 * @param  string $out The XHTML to check
 * @param  boolean $display_regardless Display XHTML output regardless of whether there was an error or not
 * @param  integer $preview_mode Whether we are opening up an XHTML-fragment in a preview box (0 means no, 1 means yes, 2 means we are asking for additional manual check information)
 * @set 0 1 2
 * @param  boolean $ret Whether to return Tempcode
 * @return string Returned result (won't return it $ret is false)
 */

function check_xhtml_webstandards(string $out, bool $display_regardless = false, int $preview_mode = 0, bool $ret = false) : string