Unclassified NewsBoard Code Reference

AbbcRegReplaceTag function

Actual reg-exp replacement of an area containing only a single level of a
BBCode tag

function AbbcRegReplaceTag ($text, $tagname, $totext = false);

Parameters:

text
(string) entire text with surrounding tags. ex: "[b]bold text[/b]"
tagname
(string) tag ID to process here. ex: "b"
totext  –  optional, default: false
(bool) true: process for text/plain output
false: normal HTML output

Return value:

(string) tag's output as HTML code or plaintext

Implementation file: unb_lib/abbc.lib.php, line 1061

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.