<p>I'm using <code>ColdFusion</code> to populate a template that includes HTML unordered lists (<code>&lt;ul&gt;</code>s).</p>

<p>Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns.</p>

<p>Is there an HTML, ColdFusion or perhaps JavaScript (I'm accepting jQuery solutions) way to do this easily?  It's not worth some over-complicated heavyweight solution to save some scrolling.</p>

[{'answer_id': 4963, 'author': 'Chris Marasti-Georg', 'author_id': 96, 'author_profile': 'https://Stackoverflow.com/users/96', 'pm_score': 4, 'selected': False, 'text': '<p>There is no pure CSS/HTML way to achieve this, as far as I know.  Your best bet would be to do it in pre-processing (<code>if list length &gt; 150, split into 3 columns, else if &gt; 70, split into  2 columns, else 1</code>).  </p>\n\n<p>The other option, using JavaScript (I\'m not familiar with the <a href="https://jquery.com/" rel="noreferrer">jQuery</a> library specifically) would be to iterate through lists, probably based on them being a certain class, count the number of children, and if it is a high  enough number, dynamically create a new list after the first, transferring some number of list items to the new list.  As far as implementing the columns, you could probably float them left, followed by an element that had the style <code>clear: left</code> or <code>clear: both</code>.</p>\n\n<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">\r\n<div class="snippet-code">\r\n<pre class="snippet-code-css lang-css prettyprint-override"><code>.column {\r\n  float: left;\r\n  width: 50%;\r\n}\r\n.clear {\r\n  clear: both;\r\n}</code></pre>\r\n<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="column"&gt;\r\n  &lt;li&gt;Item 1&lt;/li&gt;\r\n  &lt;li&gt;Item 2&lt;/li&gt;\r\n  &lt;!-- ... --&gt;\r\n  &lt;li&gt;Item 49&lt;/li&gt;\r\n  &lt;li&gt;Item 50&lt;/li&gt;\r\n&lt;/ul&gt;\r\n&lt;ul class="column"&gt;\r\n  &lt;li&gt;Item 51&lt;/li&gt;\r\n  &lt;li&gt;Item 52&lt;/li&gt;\r\n  &lt;!-- ... --&gt;\r\n  &lt;li&gt;Item 99&lt;/li&gt;\r\n  &lt;li&gt;Item 100&lt;/li&gt;\r\n&lt;/ul&gt;\r\n&lt;div class="clear"&gt;</code></pre>\r\n</div>\r\n</div>\r\n</p>\n'}, {'answer_id': 5156, 'author': 'alexp206', 'author_id': 666, 'author_profile': 'https://Stackoverflow.com/users/666', 'pm_score': 6, 'selected': True, 'text': '<p>So I dug up this article from A List Apart <a href="http://www.alistapart.com/articles/multicolumnlists" rel="noreferrer">CSS Swag: Multi-Column Lists</a>.  I ended up using the first solution, it\'s not the best but the others require either using complex HTML that can\'t be generated dynamically, or creating a lot of custom classes, which could be done but would require loads of in-line styling and possibly a huge page.</p>\n\n<p>Other solutions are still welcome though.</p>\n'}, {'answer_id': 6285, 'author': 'doekman', 'author_id': 56, 'author_profile': 'https://Stackoverflow.com/users/56', 'pm_score': 4, 'selected': False, 'text': "<p>If Safari and Firefox support is good enough for you, there is a CSS solution:</p>\n\n<pre><code>ul {\n  -webkit-column-count: 3;\n     -moz-column-count: 3;\n          column-count: 3;\n  -webkit-column-gap: 2em;\n     -moz-column-gap: 2em;\n          column-gap: 2em;\n}\n</code></pre>\n\n<p>I'm not sure about Opera.</p>\n"}, {'answer_id': 64089, 'author': 'Dan Roberts', 'author_id': 8345, 'author_profile': 'https://Stackoverflow.com/users/8345', 'pm_score': 2, 'selected': False, 'text': '<p>To output the list into multiple grouped tag you can loop in this fashion.</p>\n\n<pre><code>&lt;cfset list="1,2,3,4,5,6,7,8,9,10,11,12,13,14"&gt;\n&lt;cfset numberOfColumns = "3"&gt;\n\n&lt;cfoutput&gt;\n&lt;cfloop from="1" to="#numberOfColumns#" index="col"&gt;\n  &lt;ul&gt;\n  &lt;cfloop from="#col#" to="#listLen(list)#" index="i" step="#numberOfColumns#"&gt;\n    &lt;li&gt;#listGetAt(list,i)#&lt;/li&gt;\n  &lt;/cfloop&gt;\n  &lt;/ul&gt;\n&lt;/cfloop&gt;\n&lt;/cfoutput&gt;\n</code></pre>\n'}, {'answer_id': 65451, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>The following JavaScript code works only in Spidermonkey and Rhino, and it operates on E4X nodes--i.e., this is useful only for server-side JavaScript, but it might give someone a starting point for doing a jQuery version. (It\'s been very useful to me on the server side, but I haven\'t needed it on the client badly enough to actually build it.)</p>\n\n<pre class="lang-js prettyprint-override"><code>function columns(x,num) {\n    num || (num = 2);\n    x.normalize();\n\n    var cols, i, j, col, used, left, len, islist;\n    used = left = 0;\n    cols = &lt;div class={\'columns cols\'+num}&gt;&lt;/div&gt;;\n\n    if((left = x.length())==1)\n        left = x.children().length();\n    else\n        islist = true;\n\n    for(i=0; i&lt;num; i++) {\n        len = Math.ceil(left/(num-i));\n        col = islist ? new XMLList\n                     : &lt;{x.name()}&gt;&lt;/{x.name()}&gt;;\n\n        if(!islist &amp;&amp; x[\'@class\'].toString())\n            col[\'@class\'] = x[\'@class\'];\n\n        for(j=used; j&lt;len+used; j++)\n            islist ? (col += x[j].copy()) \n                   : (col.appendChild(x.child(j).copy()));\n\n        used += len;\n        left -= len;\n        cols.appendChild(&lt;div class={\'column\'+(i==(num-1) ? \'collast\' : \'\')}&gt;{col}&lt;/div&gt;);\n    }\n    return cols;\n}\n</code></pre>\n\n<p>You call it like <code>columns(listNode,2)</code> for two columns, and it turns:</p>\n\n<pre><code>&lt;ul class="foo"&gt;\n  &lt;li&gt;a&lt;/li&gt;\n  &lt;li&gt;b&lt;/li&gt;\n  &lt;li&gt;c&lt;/li&gt;\n&lt;/ul&gt;\n</code></pre>\n\n<p>into:</p>\n\n<pre><code>&lt;div class="columns cols2"&gt;\n  &lt;div class="column"&gt;\n    &lt;ul class="foo"&gt;\n      &lt;li&gt;a&lt;/li&gt;\n      &lt;li&gt;b&lt;/li&gt;\n    &lt;/ul&gt;\n  &lt;/div&gt;\n  &lt;div class="column collast"&gt;\n    &lt;ul class="foo"&gt;\n      &lt;li&gt;c&lt;/li&gt;\n    &lt;/ul&gt;\n  &lt;/div&gt;\n&lt;/div&gt;\n</code></pre>\n\n<p>It\'s meant to be used with CSS like this:</p>\n\n<pre class="lang-css prettyprint-override"><code>div.columns {\n    overflow: hidden;\n    _zoom: 1;\n}\n\ndiv.columns div.column {\n    float: left;\n}\n\ndiv.cols2 div.column {\n    width: 47.2%;\n    padding: 0 5% 0 0;\n}\n\ndiv.cols3 div.column {\n    width: 29.8%;\n    padding: 0 5% 0 0;\n}\n\ndiv.cols4 div.column {\n    width: 21.1%;\n    padding: 0 5% 0 0;\n}\n\ndiv.cols5 div.column {\n    width: 15.9%;\n    padding: 0 5% 0 0;\n}\n\ndiv.columns div.collast {\n    padding: 0;\n}\n</code></pre>\n'}, {'answer_id': 76747, 'author': 'ScottyDont', 'author_id': 13718, 'author_profile': 'https://Stackoverflow.com/users/13718', 'pm_score': 3, 'selected': False, 'text': '<p>I\'ve done this with jQuery - it\'s cross-platform and a minimum of code.</p>\n\n<p>Select the UL, clone it, and insert it after the previous UL. Something like:</p>\n\n<pre><code>$("ul#listname").clone().attr("id","listname2").after()\n</code></pre>\n\n<p>This will insert a copy of your list after the previous one. If the original list is styled with a float:left, they should appear side by side.</p>\n\n<p>Then you can delete the even items from the left-hand list and the odd items from the right hand list.</p>\n\n<pre><code>$("ul#listname li:even").remove();\n$("ul#listname2 li:odd").remove();\n</code></pre>\n\n<p>Now you have a left to right two column list.</p>\n\n<p>To do more columns you\'ll want to use <code>.slice(begin,end)</code> and/or the <code>:nth-child</code> selector.\nie, for 21 LIs you could <code>.slice(8,14)</code> to create a new UL inserted after your original UL, then select the original UL and delete the li\'s selected with <code>ul :gt(8)</code>. </p>\n\n<p>Try the Bibeault/Katz book on jQuery it\'s a great resource.</p>\n'}, {'answer_id': 76788, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>The thing that most people are forgetting is that when floating <code>&lt;li/&gt;</code> items, all of the items have to be the same height, or the columns start getting out of whack.</p>\n\n<p>Since you\'re using a server side language, my recommendation would be to use CF to split the list into 3 arrays. Then you can use an outer <code>ul</code> to wrap the 3 inner <code>ul</code> like so:</p>\n\n<pre><code>&lt;cfset thelist = "1,2,3,4,5,6,7,8,9,10,11,12,13"&gt;  \n&lt;cfset container = []&gt;  \n&lt;cfset container[1] = []&gt;  \n&lt;cfset container[2] = []&gt;  \n&lt;cfset container[3] = []&gt;  \n\n&lt;cfloop list="#thelist#" index="i"&gt;  \n    &lt;cfif i mod 3 eq 0&gt;  \n        &lt;cfset arrayappend(container[3], i)&gt;  \n    &lt;cfelseif i mod 2 eq 0&gt;  \n        &lt;cfset arrayappend(container[2], i)&gt;  \n    &lt;cfelse&gt;  \n        &lt;cfset arrayappend(container[1], i)&gt;  \n    &lt;/cfif&gt;  \n&lt;/cfloop&gt;  \n\n&lt;style type="text/css"&gt; \n    ul li { float: left; }  \n    ul li ul li { clear: left; }  \n&lt;/style&gt;  \n\n&lt;cfoutput&gt;  \n&lt;ul&gt;  \n    &lt;cfloop from="1" to="3" index="a"&gt;  \n    &lt;li&gt;  \n        &lt;ul&gt;  \n            &lt;cfloop array="#container[a]#" index="i"&gt;  \n            &lt;li&gt;#i#&lt;/li&gt;  \n            &lt;/cfloop&gt;  \n        &lt;/ul&gt;  \n    &lt;/li&gt;  \n    &lt;/cfloop&gt;  \n&lt;/ul&gt;  \n&lt;/cfoutput&gt;\n</code></pre>\n'}, {'answer_id': 110355, 'author': 'jonah', 'author_id': 19861, 'author_profile': 'https://Stackoverflow.com/users/19861', 'pm_score': 2, 'selected': False, 'text': '<p>Using a modulo operation, you can quickly split your list into multiple lists by inserting a <code>&lt;/ul&gt;&lt;ul&gt;</code> during your loop.</p>\n\n<pre><code>&lt;cfset numberOfColumns = 3 /&gt;\n&lt;cfset numberOfEntries = 34 /&gt;\n&lt;ul style="float:left;"&gt;\n    &lt;cfloop from="1" to="#numberOfEntries#" index="i"&gt;\n        &lt;li&gt;#i#&lt;/li&gt;\n            &lt;cfif NOT i MOD ceiling(numberOfEntries / numberOfColumns)&gt;\n                &lt;/ul&gt;\n                &lt;ul style="float:left;"&gt;\n            &lt;/cfif&gt;\n    &lt;/cfloop&gt;\n&lt;/ul&gt;\n</code></pre>\n\n<p>Use <code>ceiling()</code> instead of <code>round()</code> to ensure that you don\'t have extra values at the end of the list and that the last column is shortest.</p>\n'}, {'answer_id': 1941883, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>Here is a variation on <a href="https://stackoverflow.com/questions/4923/wrapping-lists-into-columns/76747#76747">Thumbkin\'s</a> example (using Jquery):</p>\n\n<pre><code>var $cat_list = $(\'ul#catList\'); // UL with all list items.\nvar $cat_flow = $(\'div#catFlow\'); // Target div.\nvar $cat_list_clone = $cat_list.clone(); // Clone the list.\n$(\'li:odd\', $cat_list).remove(); // Remove odd list items.\n$(\'li:even\', $cat_list_clone).remove(); // Remove even list items.\n$cat_flow.append($cat_list_clone); // Append the duplicate to the target div.\n</code></pre>\n\n<p>Thanks Thumbkin!</p>\n'}, {'answer_id': 14593214, 'author': 'bradleygriffith', 'author_id': 827441, 'author_profile': 'https://Stackoverflow.com/users/827441', 'pm_score': 2, 'selected': False, 'text': '<p>Here is another solution that allows for columned lists in the following style:</p>\n\n<pre><code>1.      4.      7.       10.\n2.      5.      8.       11.\n3.      6.      9.       12.\n</code></pre>\n\n<p>(but it\'s pure javascript, and requires jQuery, with no fallback)</p>\n\n<p>The following contains a some code that modifies the Array prototype to give a new function called \'chunk\' that breaks any given Array into chunks of a given size. Next is a function called \'buildColumns\' that takes a UL selector string and a number used to designate how many rows your columns may contain. (<a href="http://jsfiddle.net/bradleygriffith/Nj4LW/" rel="nofollow">Here is a working JSFiddle</a>)</p>\n\n<pre><code>$(document).ready(function(){\n    Array.prototype.chunk = function(chunk_size){\n        var array = this,\n            new_array = [],\n            chunk_size = chunk_size,\n            i,\n            length;\n\n        for(i = 0, length = array.length; i &lt; length; i += chunk_size){\n            new_array.push(array.slice(i, i + chunk_size));\n        }\n        return new_array;\n    }\n\n    function buildColumns(list, row_limit) {\n        var list_items = $(list).find(\'li\').map(function(){return this;}).get(),\n        row_limit = row_limit,\n        columnized_list_items = list_items.chunk(row_limit);\n\n        $(columnized_list_items).each(function(i){\n            if (i != 0){\n                var item_width = $(this).outerWidth(),\n                    item_height = $(this).outerHeight(),\n                    top_margin = -((item_height * row_limit) + (parseInt($(this).css(\'margin-top\')) * row_limit)),\n                    left_margin = (item_width * i) + (parseInt($(this).css(\'margin-left\')) * (i + 1));\n\n                $(this[0]).css(\'margin-top\', top_margin);\n                $(this).css(\'margin-left\', left_margin);\n            }\n        });\n    }\n\n    buildColumns(\'ul#some_list\', 5);\n});\n</code></pre>\n'}, {'answer_id': 17410790, 'author': 'Tim Vermaelen', 'author_id': 1114530, 'author_profile': 'https://Stackoverflow.com/users/1114530', 'pm_score': 2, 'selected': False, 'text': '<p>Since I had the same problem and couldn\'t find anything "clean" I thought I\'d posted my solution. In this example I use a reversed <code>while</code> loop so I can use <code>splice</code> instead of <code>slice</code>. The advantage now is splice() only needs an index and a range where slice() needs an index and the total. The latter tends to become difficult while looping. </p>\n\n<p>Disadvantage is I need to reverse the stack while appending.</p>\n\n<p><strong>Example:</strong></p>\n\n<p>cols = 4; \nliCount = 35</p>\n\n<p>for loop with slice = [0, 9]; [9, 18]; [18, 27]; [27, 35]</p>\n\n<p>reversed while with splice = [27, 8]; [18, 9]; [9, 9]; [0, 9]</p>\n\n<p><strong>Code:</strong></p>\n\n<pre><code>// @param (list): a jquery ul object\n// @param (cols): amount of requested columns\nfunction multiColumn (list, cols) {\n    var children = list.children(),\n        target = list.parent(),\n        liCount = children.length,\n        newUl = $("&lt;ul /&gt;").addClass(list.prop("class")),\n        newItems,\n        avg = Math.floor(liCount / cols),\n        rest = liCount % cols,\n        take,\n        stack = [];\n\n    while (cols--) {\n        take = rest &gt; cols ? (avg + 1) : avg;\n        liCount -= take;\n\n        newItems = children.splice(liCount, take);\n        stack.push(newUl.clone().append(newItems));\n    }\n\n    target.append(stack.reverse());\n    list.remove();\n}\n</code></pre>\n'}, {'answer_id': 32249448, 'author': 'Ajay Gupta', 'author_id': 2663073, 'author_profile': 'https://Stackoverflow.com/users/2663073', 'pm_score': 2, 'selected': False, 'text': '<p>You can try this to convert in cols.</p>\n\n<p>CSS:</p>\n\n<pre><code>ul.col {\n    width:50%;\n    float:left;\n}\n\ndiv.clr {\n    clear:both;\n}\n</code></pre>\n\n<p>Html Part :</p>\n\n<pre><code>&lt;ul class="col"&gt;\n    &lt;li&gt;Number 1&lt;/li&gt;\n    &lt;li&gt;Number 2&lt;/li&gt;\n\n    &lt;li&gt;Number 19&lt;/li&gt;\n    &lt;li&gt;Number 20&lt;/li&gt;\n&lt;/ul&gt;\n&lt;ul class="col"&gt;\n    &lt;li&gt;Number 21&lt;/li&gt;\n    &lt;li&gt;Number 22&lt;/li&gt;\n\n    &lt;li&gt;Number 39&lt;/li&gt;\n    &lt;li&gt;Number 40&lt;/li&gt;\n&lt;/ul&gt;\n</code></pre>\n\n<p></p>\n'}, {'answer_id': 32295899, 'author': 'Danield', 'author_id': 703717, 'author_profile': 'https://Stackoverflow.com/users/703717', 'pm_score': 2, 'selected': False, 'text': '<p>Flexbox can be used to wrap items in both row and column directions.</p>\n\n<p>The main idea is to set the <code>flex-direction</code> on the container to either <code>row</code> or <code>column</code>.</p>\n\n<p>NB: Nowadays <a href="http://caniuse.com/#feat=flexbox" rel="nofollow">browser support</a> is pretty good.</p>\n\n<h2><a href="http://jsfiddle.net/danield770/xp2y2sp1/" rel="nofollow">FIDDLE</a></h2>\n\n<p>(Sample markup taken from <a href="http://alistapart.com/article/multicolumnlists" rel="nofollow">this old \'list apart\' article</a>) </p>\n\n<p><div class="snippet" data-lang="js" data-hide="false">\r\n<div class="snippet-code">\r\n<pre class="snippet-code-css lang-css prettyprint-override"><code>ol {\r\n  display: flex;\r\n  flex-flow: column wrap; /* flex-direction: column */\r\n  height: 100px; /* need to specify height :-( */\r\n}\r\nol ~ ol {\r\n  flex-flow: row wrap; /* flex-direction: row */\r\n  max-height: auto; /* override max-height of the column direction */\r\n}\r\nli {\r\n  width: 150px;\r\n}\r\na {\r\n  display: inline-block;\r\n  padding-right: 35px;\r\n}</code></pre>\r\n<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;p&gt;items in column direction&lt;/p&gt;\r\n&lt;ol&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Aloe&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Bergamot&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Calendula&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Damiana&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Elderflower&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Feverfew&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Ginger&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Hops&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Iris&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Juniper&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Kava kava&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Lavender&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Marjoram&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Nutmeg&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Oregano&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Pennyroyal&lt;/a&gt;\r\n  &lt;/li&gt;\r\n&lt;/ol&gt;\r\n&lt;hr/&gt;\r\n&lt;p&gt;items in row direction&lt;/p&gt;\r\n&lt;ol&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Aloe&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Bergamot&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Calendula&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Damiana&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Elderflower&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Feverfew&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Ginger&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Hops&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Iris&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Juniper&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Kava kava&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Lavender&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Marjoram&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Nutmeg&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Oregano&lt;/a&gt;\r\n  &lt;/li&gt;\r\n  &lt;li&gt;&lt;a href="#"&gt;Pennyroyal&lt;/a&gt;\r\n  &lt;/li&gt;\r\n&lt;/ol&gt;</code></pre>\r\n</div>\r\n</div>\r\n</p>\n'}]
['https://Stackoverflow.com/questions/4923', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/666/']