in reply to Re^5: Most efficient way to remove some text from a string
in thread Most efficient way to remove some text from a string

To get a list with out either bullets or numbers [use <dl>]

Please don't do this. It would be misusing semantic tags for stylistic reasons which has been frowned upon since the turn of the millennium. Worst of all, it upsets Sir Tim.

In HTML, an unordered list (which is what you have in your last example) is semantically identified by the <ul> tag. It's what the U and the L stand for: Unordered List. If you want to present this list without any markers then all you need to do is style it as such, either via CSS or a <style> tag or (simplest) with the style attribute. eg: <ul style="list-style: none;">.

Conversely the <dl> tag is semantically for Definition Lists (or more generally for Description Lists). Since you aren't defining/describing any terms here, please don't use the tag for this.

I know you mean well and we've all had to shudder at some point as we feed horrendous input to a broken application to please some PHB but it would be bad for someone to stumble upon this thread and think that <dl> is an acceptable way of styling a list generally.