Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <button id="btnRemoveLinks">Remove Links</button>
<div class="article-content bz3-article-content-narrow-width">
          <div id="article-body" class="bz3-article-page__content">
            <p>Cathie Wood's Ark funds on Friday <a href="">picked up more shares</a> of <strong>Coinbase Global Inc</strong> (NASDAQ:<a class="ticker" href="/stock/COIN#NASDAQ">COIN</a>), which debuted this past week, while selling off some holdings of <strong>Tesla Inc </strong>(NASDAQ:<a class="ticker" href="/stock/TSLA#NASDAQ">TSLA</a>).</p>
<p>Here's the rundown on the trades.</p>
<li>ARK bought 187,078 shares of Coinbase.</li>
<li>That amounts to nearly $64 million at the day’s closing price of $342.</li>
<li>The funds went into the flagship <strong>ARK Innovation ETF</strong> (NYSE:<a class="ticker" href="/stock/ARKK#NYSE">ARKK</a>), as well as into the <strong>ARK Next Generation Internet ETF</strong> (NYSE:<a class="ticker" href="/stock/ARKW#NYSE">ARKW</a>) and the <strong>Ark Fintech Innovation ETF</strong> (NYSE:<a class="ticker" href="/stock/ARKF#NYSE">ARKF</a>).</li>
<li>Ark bought almost 1 million shares of Coinbase earlier in the week.Ark sold off 134,541 shares of Tesla — worth $99.5 million at Friday's close.</li>
<li>The Tesla shares came out of the ARK Innovation fund and the Next Generation Internet ETF.</li>
<li>The trades follow a pattern Ark set <a href="">earlier in the week</a> on these two stocks.</li>


                .article-content {
  font-family: Helvetica Neue,Helvetica,OpenSans,Arial,sans-serif;
  padding: 10px;
  margin-top: 10px;
  background-color: lightgray;

.link-span {
  color: red;


                $(function() {
    $('#btnRemoveLinks').click(function() {

function linksToSpans(targetElt) {
  var targetIsString = typeof targetElt === 'string';
  if (targetIsString) {
    targetElt = $('<div></div>').html(htmlContent);
  } else if (targetElt instanceof HTMLElement)  {
    targetElt = $(targetElt);
  } else if (!(targetElt instanceof jQuery)) {
    throw 'Invalid Target Element type!';
    .wrap(function() {
      var linkText  = $(this).text(),
          spanClass = linkText == linkText.toUpperCase() 
                      ? ' class="link-span"' 
                      : '';
      return '<span' + spanClass + '></span>';
  return targetIsString ? targetElt.html() : void(0);