File/templates/docbook/edit/content/process_content.php

Description

This file contains functions about processing the content of a node that are used by the edit_content webbox and by other modules.

Includes
 include_once (__FILE__) (line 33)
Functions
compact_cdata (line 190)

Replace explicit CDATA like this:

--tag <![CDATA[abc xyz]]> ---- by a compact (implicit) CDATA like this: --tag-- abc xyz ----

Also, replace <![CDATA[xyz]]> by [[xyz]]

void compact_cdata ( $content)
  • $content
expand_cdata (line 151)

Replace implicit CDATA like this:

--tag-- abc xyz ---- by an explicit CDATA like this: --tag <![CDATA[abc xyz]]> ----

Also, replace [[xyz]] by <![CDATA[xyz]]>

void expand_cdata ( $content)
  • $content
get_node_content (line 39)

Builds the content of the node by processing content.xml with xml2mode.xsl, and assigns it to a template variable.

void get_node_content ( $xml_file,  $mode)
  • $xml_file
  • $mode
putback_cdata (line 121)

replace <cdata>x</cdata> by the corresponding <![CDATA[...]]>

void putback_cdata ( $str, [ $mode = 'xml'])
  • $str
  • $mode
putback_comments (line 110)

replace <comment>x</comment> by the corresponding <!--...-->

void putback_comments ( $str)
  • $str
strip_cdata (line 76)

replace <![CDATA[...]]> by <cdata>x</cdata>

void strip_cdata ( $str)
  • $str
strip_comments (line 93)

replace <!--...--> by <comment>x</comment>

void strip_comments ( $str)
  • $str

Documentation generated on Wed, 09 Jan 2008 08:26:53 +0100 by phpDocumentor 1.3.2