How to generate a <ul><li> tree without recursive using python or other language ??
- by user210221
class tree:
def __init__(self, name='a', childs=[]):
self.name = name
self.childs = childs
output:
<ul>
<li>
Introduction
<ul>
<li>Sub Intro</li>
</ul>
</li>
<li>Module 1</li>
</ul>
Sorry, my English is poor.