Purpose:- Easing the wiki content import during rapid website development. Description:- This code helps you convert the string(with tab space and newline) to HTML table.
th1 content - tab space - th2 content - new line(first row thead)
td1 content - tab space - td2 content - new line(second row onwards tbody)
Input:-
--------------------------------------
Topic Description
Name Vishnuvardhan(Saahasa Simha)
Born Sampath Kumar 18 September 1950 Mysore, Mysore State, India
Died 30 December 2009 (aged 59) Mysore, Karnataka, India
Nationality Indian
Occupation Actor
Years active 1972–2009
Spouse(s) Bharathi Rao (1975–2009)
Output:-
---------------------------------------
Topic | Description |
---|---|
Name | Vishnuvardhan(Saahasa Simha) |
Born | Sampath Kumar 18 September 1950 Mysore, Mysore State, India |
Died | 30 December 2009 (aged 59) Mysore, Karnataka, India |
Nationality | Indian |
Occupation | Actor |
Years active | 1972–2009 |
Spouse(s) | Bharathi Rao (1975–2009) |
Thanks
Happy coding!!!!!!
@narasimharaosp