A handy function to convert new line \n seprated text into ordered or unordered list. I am calling it nl2li.
Copyleft : LGPL
Idea by: webKami
Coded By: webKami
Version 1.0.0
Features:
1, Converts new line characters to list items.
2, Can specify the ordered or unrdered list and even specify the type of list.
A handy function to convert new line
\n seprated text into ordered or unordered list. I am calling it nl2li,
suggestions welcome.
Second optional parameter sets the list as ordered (1) or unordered (0
= default). Third parameter can be used to specify type of ordered
list, valid
inputs are "1" = default ,"a","A","i","I".
Code:
|