Home Private Messages Search
CPG Dragonfly™ CMS Dedicated Server & Bandwidth Sponsored by DedicatedNOW
 
CPG-Nuke source documentation


Files - Classes
  includes/cmsinit.inc
[x] includes
[x] properties
[x] functions
htmlprepare

string htmlprepare(string $str, boolean $nl2br, define $spchar, mixed $nohtml)

Converts all ", ', and & to the html HTML entities which are ", ', <, >, &

When the second parameter is set to true it also converts \n to \n

The third allows you to set if all mention characters must be converted (ENT_QUOTES) or keep the quotes as they are (ENT_NOQUOTES) or don't convert single quotes (ENT_COMPAT)

The fourth allows you to strip all (x)html but you may also specify which to keep like ''

Arguments

  • $str

    The string to convert

  • $nl2br [optional, default value = false]

    Convert \n

  • $spchar [optional, default value = ENT_QUOTES]

    Convert mentioned HTML special entities using ENT_QUOTES, ENT_NOQUOTES or ENT_COMPAT

  • $nohtml [optional, default value = false]

    specify which tags to keep when the rest gets stripped

You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
Interactive software released under GNU GPL, Code Credits, Privacy Policy