parse_dohtml
Usage: string parse_dohtml (string input[, bool parse])
Purpose: Parses [doHTML] tags.
Availability: IPB SDK 1.0
Purpose: Parses [doHTML] tags.
Availability: IPB SDK 1.0
Parses doHTML tags in input and returns the parsed version. If parse is set to FALSE, doHTML tags will not be parsed, and the input will be returned.
// Sends <b>hello</b>
echo $SDK->parse_dohtml("[doHTML]<b>hello</b>[/doHTML]", 1);
echo $SDK->parse_dohtml("[doHTML]<b>hello</b>[/doHTML]", 1);
User Contributed Notes
Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net
thinglie
Using this with other BBCodes:
To use this in Conjunction with other BBCodes, use a code Similiar to the Followng:
$string = "[ b]Lions[/b] and [ doHTML]<b>tigers</b>[/doHTML] and [ b]Bears[/b], Oh, My!!";
$output = $SDK->bbcode2html( $string, 1 );
$output .= $SDK->parse_dohtml( $string, 1 );
echo $output;
cow
Wouldn't $SDK->bbcode2html($SDK->parse_dohtml($string, 1)) work better Thinglie?
thinglie
Actually, yes it would :$