adding handling for run-away bbcode in valid bbcode