Function __global->reasonable_html_reduce

Definitions

sources/tempcode.php

  • Reduce down a template parameter to a maximum reasonable length, to avoid too much data being stuck in Tempcode trees.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: object

Parameters

Name Type Default Set Range Description
$text Tempcode required parameter N/A N/A Text, provided in HTML format
$max_length integer 1000 N/A N/A Maximum length

Return

  • Reduced length version of $text if required
  • Type: Tempcode
  • Set: N/A
  • Range: N/A