Introduction   Getting Started   Upgrading   Function Reference   Changelog   Support and Feedback

parse_dohtml

Usage: string parse_dohtml (string input[, bool parse])
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]&lt;b&gt;hello&lt;/b&gt;[/doHTML]", 1);


User Contributed Notes

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;

smile.gif

cow
Wouldn't $SDK->bbcode2html($SDK->parse_dohtml($string, 1)) work better Thinglie?

thinglie
Actually, yes it would :$

Documentation Generated at Sat, 16 Apr 2005 07:36:35 -0700
Find the latest version at http://ipbsdk.sourceforge.net