Conversion from bbcode to html
Hi,
I have the default input format as BBCODE
Now that client requirement has change and it wants the full html in place of BBCODE
So i have created module for the same and have this function it which converts the BBCODE to full html
function conversion_convert_to_html()
{
$node = node_load(1057);
$rendered_node = node_build_content($node);
$node_body = $rendered_node->body;
$node->format = 2;
node_save($node);
}
the function works prefectly for the conversion but the only problem is see here is
in the description filed after conversion when node_save($node) , description field contains both BBCODE and FULL HTML as well.
I am trying to delete or replace this bbcode with the converted html but that doesnt happens.
Where am i going wrong here?
Any suggestions/ideas/help on this please?
Thanks allot!

HTML Filter treats titles differently
Thanks, I was just looking for a way to convert my BBCode nodes to html.
Now that you mention your problem I recall having trouble with the html filter on the titles of RSS feeds. The html filter intentionally treats titles differently for some security reason. In my particular case it was converting html entities to literal "&emdash;" strings and such. I think you could temporarily tweak the filter function to make the conversion work for you and then change the filter back to normal.
I think it was Drupal 5 in which I poked into this before. If I get a chance I'll see if I can find in Drupal 6 what needs to be temporarily changed.