PTM Logo Version 0.5.1 Beta
Home    SVN    Downloads    Documentation    Forum    Contact
This Site is 100%
Powered by PTM

SourceForge.net Logo
Documentation
I   Index
II   GNU GPL
III   Description
IV   Installation
V   Language Overview
VI   Tags
VII   Variables
VIII   Functions
  _PTM()
  _PTM_FILE()
  append_file_text()
  basic_header()
  delete_cookie()
  end_session()
  get_dir_list()
  get_file_text()
  is_secure()
  is_session()
  nohtml()
  redirect_header()
  session_add()
  session_delete()
  session_domain()
  session_id()
  session_name()
  session_path()
  session_secure()
  set_basic_header()
  set_cookie()
  set_redirect_header()
  start_session()
  update_session()
  write_file_text()
IX   Modules
Documentation
View / Download this file.
-----------------
nohtml() FUNCTION
-----------------

  ------------
  USAGE FORMAT
  ------------

    Where $text is the fixed return string:

    $text = nohtml($html);

  -----------
  DESCRIPTION
  -----------

    The nohtml() function is used to convert HTML related characters, such as
    <>&", with their ordinal macros (example: '&' becomes '&#38') so they become
    viewable to the end user. Mainly used to display a piece of HTML or PTM
    script to end users without having to worry about converting the characters
    manually. This is an internal alternative to using the NOHTML tag.

  ---------
  ARGUMENTS
  ---------

    $html

      REQUIRED

      The HTML string to convert.

  -------
  RETURNS
  -------

    A converted string where HTML characters are replaced with their ordinal
    macro equivalents.

  --------------
  USAGE EXAMPLES
  --------------

    --------------------------------------------------------------
    Example 1: Display "<HTML>" to the End User with a DISPLAY Tag
    --------------------------------------------------------------

      <?= nothml("<HTML>") =?>

      The sample above displays <HTML> to the end users instead of starting an
      HTML document.

  --------
  SEE ALSO
  --------

    TAGS

      NOHTML
Home    SVN    Downloads    Documentation    Forum    Contact