Formatting
HTML in a paste is markup you can see and text you wanted. This page parses the fragment, throws away script, style, template, and noscript, and inserts a newline after breaks, paragraphs, list items, divisions, headings, and table rows. The remaining text is what you get. “<b>A & B</b>” becomes “A & B”. The entity is decoded. The tag is gone. The attribute on the tag is gone, even if it contained words.
Structure becomes lines, not spaces. A div of “Odd socks”, then a list of “one” and “two”, becomes three lines: Odd socks, one, two. A <br> between “socks” and “in the dryer.” becomes a newline, so you get “Odd socks” and “in the dryer.” A non-breaking space entity becomes a real non-breaking space, which is not the same character as a normal space.
Plain text with no tags is unchanged. “Odd socks in the dryer.” has nothing to strip. This is not a Markdown conversion. You do not get headings as # or links as [label](url). The address on an <a> is discarded with the tag. If you needed Markdown, use HTML to Markdown.
<div>Odd socks</div><ul><li>one</li><li>two</li></ul>
Odd socks, with a non-breaking space between the words, then a new line “one”, then a new line “two”. The tags are gone. The entity is decoded.
Oddsock runs this in your browser. It is free, it does not upload the work, and it does not ask for an account.
Yes. & becomes &. becomes a non-breaking space, which still looks like a gap and is a different character from an ordinary space.
Those elements are removed, contents included. A script that held the word socks will not leave socks behind.
No. You get plain text and newlines. HTML to Markdown is the page that writes # headings and [links](url).
No. The visible label can remain. The href is part of the tag and goes with it.
Breaks, paragraphs, list items, divs, headings, and table rows each insert a newline. That is how the list stays readable after the tags disappear.