Cleaning a bio pasted from a web page before it goes into a spreadsheet
You are building a list of speakers for an event, and each bio comes from a different place. One was copied from a web page and arrived as "<p>Jane runs a <b>design</b> studio & teaches</p>". Another came from a social profile written as "𝐉𝐚𝐧𝐞 𝐃𝐨𝐞, “maker of things”". A third was typed in Word with two spaces after every full stop. In a spreadsheet, these look messy, sort strangely and break searches.
Paste each bio here with the defaults on. The HTML tags go and the text inside them stays, so the first bio reads "Jane runs a design studio & teaches", with & turned back into &. Paragraph and list tags become line breaks, so the structure of the text survives without the markup. Scripts and styles are removed with their contents, so a stray block of code never ends up in your cell.
The second bio shows why Fancy letters to plain exists. "𝐉𝐚𝐧𝐞" is not Jane in a bold font. It is four separate Unicode symbols from the mathematical alphabets, and a search for Jane will not find it. The cleaner maps those symbols, and the circled, full-width and small-capital ones, back to plain letters. It only touches those blocks, so "café", "½" and Japanese text stay as they are. The curly quotes around "maker of things" become straight ones, which is safer in a CSV file.
Remove extra spaces handles the third bio: two spaces after a full stop become one, tabs become a space, and no-break spaces from Word become plain ones. Squeeze blank lines makes sure no bio has a big gap in the middle. The note under the result tells you how many lines changed, so you can see that a bio that was already clean came through untouched.
The cleaner has limits. It strips HTML with patterns, not a browser parser, so it is for getting text out of HTML, not for making HTML safe to publish. Unusual markup, such as a ">" inside an attribute, can leave a fragment behind. Fancy letters with no plain equivalent, such as upside-down text, are not changed. Curly quotes are a good guess from the character before each quote, but a quote at the start of a word that is really an apostrophe can still come out wrong. With Remove extra spaces on, the result uses plain line breaks rather than Windows ones. It takes up to 1 MB of text at a time.