parse_bbc

Description

This very hefty function parses bbc in message.

Syntax

void parse_bbc (string $message[, mixed $smileys[, string $cache_id]])



Parameter $message

Expected type: String
Description: The message to be parsed



Parameter $smileys

Expected type: Mixed
Description: If true, parse smileys; if false, don't parse smilies; if 'print', we're in print page, do whatever you have to do to clean up.



Parameter $cache_id

Expected type: String
Description: A unique identifier to be used for any caching


Notes

  • Only parses bbc tags which are not disabled in disabledBBC.
  • Also handles basic HTML, if enablePostHTML is on.
  • Caches the from/to replace regular expressions so as not to reload them every time a string is parsed.
  • Only parses smileys if smileys is true.
  • Does nothing if the enableBBC setting is off.
  • Applies the fixLongWords magic if the setting is set to on.
  • Uses the cache_id as a unique identifier to facilitate any caching it may do.
  • Returns the modified message.
Advertisement: