Rosetta Code:Village Pump/tasks descriptions only: Difference between revisions

m
a few things that happened after I ran it.
(SlimerJS solution)
m (a few things that happened after I ran it.)
Line 46:
::The while loop should handle the different amounts of text between the infobox markup and the beginning of the contents table. [[User:Axtens|Axtens]] ([[User talk:Axtens|talk]]) 09:53, 16 April 2015 (UTC)
 
::Here's a SlimerJS solution. Not perfect but seems to work reasonably well (it's funny watching all the little windows open and close.) A little annoyingly, itSlimerJS doesn't implement innerText, so there are the odd occasions where there's markup in the file. Also, occasionally there's a TABLE that's not the contents before the contents, thus truncating the description.
<lang javascript>var fs = require('fs');
 
Anonymous user