<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[HTML - Only save the heading and paragraphs text, remove images and links]]></title><description><![CDATA[<p dir="auto">Hi :) Pretty new to notepad++ but it feels amazing with functions.</p>
<p dir="auto">I wonder if it´s possible to use somekind of regexp to clean html code so the only contain text within the heading (&lt;h&gt; to &lt;/h&gt;) and paragraphs (&lt;p&gt; to &lt;/p&gt;)</p>
<p dir="auto">Removing everything else between images etc and also attributes like links, classes, ids etc within a tag?</p>
<p dir="auto">Example:-----------------------------raw version------------------------------------</p>
<p dir="auto">&lt;p&gt;&lt;img alt=“” class=“aligncenter size-large wp-image-129073” height=“658” loading=“lazy” sizes=“(max-width: 1170px) 100vw, 1170px” src=“<a href="https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-1170x658.jpg" rel="nofollow ugc">https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-1170x658.jpg</a>” srcset=“<a href="https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-1170x658.jpg" rel="nofollow ugc">https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-1170x658.jpg</a> 1170w, <a href="https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-770x433.jpg" rel="nofollow ugc">https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-770x433.jpg</a> 770w, <a href="https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-768x432.jpg" rel="nofollow ugc">https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-768x432.jpg</a> 768w, <a href="https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-830x467.jpg" rel="nofollow ugc">https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film-830x467.jpg</a> 830w, <a href="https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film.jpg" rel="nofollow ugc">https://331mrnu3ylm2k3db3s1xd1hg-wpengine.netdna-ssl.com/wp-content/uploads/2017/12/coffee-film.jpg</a> 1920w” width=“1170”&gt;&lt;/p&gt;<br />
&lt;p&gt;Earlier this month we unveiled the nominees for the Ninth Annual Sprudgie Awards. &lt;a class=“addbackground” href=“<a href="https://sprudge.com/vote" rel="nofollow ugc">https://sprudge.com/vote</a>”&gt;Voting is now open&lt;/a&gt; across a dozen categories, honoring the very best in coffee. Voting ends December 31st, 2017 at 11:59 PM.&lt;/p&gt;<br />
&lt;p&gt;In this feature, we’re spotlighting the 2017 nominees for Best Coffee Film/Video, one of the tightest races in all Sprudgie Award categories. Past winners for Best Coffee Film/Video include the &lt;em&gt;&lt;a class=“addbackground” href=“<a href="https://www.netflix.com/title/80109415" rel="nofollow ugc">https://www.netflix.com/title/80109415</a>”&gt;Gilmore Girls: A Year In The Life,&lt;/a&gt; &lt;a href=“<a href="https://www.facebook.com/BaristaFilm/" rel="nofollow ugc">https://www.facebook.com/BaristaFilm/</a>”&gt;Barista&lt;/a&gt;, &lt;a class=“addbackground” href=“<a href="https://sprudge.com/dunkin-love-everything-54551.html" rel="nofollow ugc">https://sprudge.com/dunkin-love-everything-54551.html</a>”&gt;Dunkin Love&lt;/a&gt;, &lt;a class=“addbackground” href=“<a href="https://sprudge.com/now-watching-hey-girl-guide-coffeeing-maria-hill.html" rel="nofollow ugc">https://sprudge.com/now-watching-hey-girl-guide-coffeeing-maria-hill.html</a>”&gt;Hey Girl Guide To Coffeeing&lt;/a&gt;, &lt;a class=“addbackground” href=“<a href="http://comediansincarsgettingcoffee.com/" rel="nofollow ugc">http://comediansincarsgettingcoffee.com/</a>”&gt;Comedians in Cars Getting Coffee&lt;/a&gt;, &lt;/em&gt;and &lt;em&gt;&lt;a class=“addbackground” href=“<a href="http://info.stumptowncoffee.com/kenya-video/" rel="nofollow ugc">http://info.stumptowncoffee.com/kenya-video/</a>”&gt;“Kenya”&lt;/a&gt; (Stumptown Coffee Roasters).&lt;/em&gt;&lt;/p&gt;<br />
&lt;p&gt;Let’s meet this year’s nominees!&lt;/p&gt;&lt;!-- Either there are no banners, they are disabled or none qualified for this location! --&gt;<br />
&lt;h3 id=“rb-The-Young-and-the-Spoonless-by-Cafe-Imports”&gt;The Young and the Spoonless by Cafe Imports&lt;/h3&gt;<br />
&lt;p&gt;&lt;iframe allowfullscreen=“allowfullscreen” frameborder=“0” height=“675” loading=“lazy” mozallowfullscreen=“mozallowfullscreen” src=“<a href="https://player.vimeo.com/video/215119548" rel="nofollow ugc">https://player.vimeo.com/video/215119548</a>” title=“Introducing: The Young and the Spoonless” webkitallowfullscreen=“webkitallowfullscreen” width=“1200”&gt;&lt;/iframe&gt;&lt;/p&gt;<br />
&lt;h3 id=“rb-I-Yelp-By-The-Way-by-Dapper-amp-Wise”&gt;I Yelp By The Way by Dapper &amp; Wise&lt;/h3&gt;<br />
&lt;blockquote class=“instagram-media” data-instgrm-captioned=“data-instgrm-captioned” data-instgrm-permalink=“<a href="https://www.instagram.com/p/BbNDSpaFT_L/" rel="nofollow ugc">https://www.instagram.com/p/BbNDSpaFT_L/</a>” data-instgrm-version=“8” style=“background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);”&gt;<br />
&lt;div style=“padding:8px;”&gt;<br />
&lt;div style=“background:#F8F8F8; line-height:0; margin-top:40px; padding:28.10185185185185% 0; text-align:center; width:100%;”&gt;<br />
&lt;div style=“background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;”&gt;&lt;/div&gt;<br />
&lt;/div&gt;</p>
<p dir="auto">-----------------------------cleaned version------------------------------------</p>
<p dir="auto">&lt;p&gt;Earlier this month we unveiled the nominees for the Ninth Annual Sprudgie Awards.Voting is now open across a dozen categories, honoring the very best in coffee. Voting ends December 31st, 2017 at 11:59 PM.&lt;/p&gt;<br />
&lt;p&gt;In this feature, we’re spotlighting the 2017 nominees for Best Coffee Film/Video, one of the tightest races in all Sprudgie Award categories. Past winners for Best Coffee Film/Video include the Gilmore Girls: A Year In The Life,Barista, Dunkin Love, Hey Girl Guide To Coffeeing, Comedians in Cars Getting Coffee, and “Kenya" (Stumptown Coffee Roasters).&lt;/em&gt;&lt;/p&gt;<br />
&lt;p&gt;Let’s meet this year’s nominees!&lt;/p&gt;<br />
&lt;h3&gt;The Young and the Spoonless by Cafe Imports&lt;/h3&gt;<br />
&lt;h3&gt;I Yelp By The Way by Dapper &amp; Wise&lt;/h3&gt;</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/22310/html-only-save-the-heading-and-paragraphs-text-remove-images-and-links</link><generator>RSS for Node</generator><lastBuildDate>Wed, 17 Jun 2026 09:40:03 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/22310.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Dec 2021 12:17:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HTML - Only save the heading and paragraphs text, remove images and links on Tue, 28 Dec 2021 23:42:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/daniel-norin" aria-label="Profile: daniel-norin">@<bdi>daniel-norin</bdi></a>, <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>, all</p>
<p dir="auto">Just for the sake of variety, here is my take. It seems to work fine on input data, hope it can deal with other inputs.</p>
<p dir="auto">Note that it does not remove empty paragraphs, such as the first and sixth. Anyway, it is easy to delete them in a second step.</p>
<p dir="auto">Instructions are similar to the ones provided by <a class="plugin-mentions-user plugin-mentions-a" href="/user/guy038" aria-label="Profile: guy038">@<bdi>guy038</bdi></a>. Open the <code>Replace</code> dialog (<code>Ctrl + H</code>) and type:</p>
<pre><code class="language-z">Search: (?s)&lt;(?!/?p&gt;|/?h3&gt;?).*?&gt;| id=.*?(?=&gt;)
Replace: [leave empty]
</code></pre>
<p dir="auto">Put the caret at the very beginning of the document, select the <code>Regular Expression mode</code> and click on <code>Replace</code> or <code>Replace All</code>.</p>
<p dir="auto">Output:</p>
<pre><code class="language-z">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Earlier this month we unveiled the nominees for the Ninth Annual Sprudgie Awards. Voting is now open across a dozen categories, honoring the very best in coffee. Voting ends December 31st, 2017 at 11:59 PM.&lt;/p&gt;
&lt;p&gt;In this feature, we’re spotlighting the 2017 nominees for Best Coffee Film/Video, one of the tightest races in all Sprudgie Award categories. Past winners for Best Coffee Film/Video include the Gilmore Girls: A Year In The Life, Barista, Dunkin Love, Hey Girl Guide To Coffeeing, Comedians in Cars Getting Coffee, and “Kenya” (Stumptown Coffee Roasters).&lt;/p&gt;
&lt;p&gt;Let’s meet this year’s nominees!&lt;/p&gt;
&lt;h3&gt;The Young and the Spoonless by Cafe Imports&lt;/h3&gt;
&lt;p&gt;&lt;/p&gt;
&lt;h3&gt;I Yelp By The Way by Dapper &amp; Wise&lt;/h3&gt;
</code></pre>
<p dir="auto">Stay healthy</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72426</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72426</guid><dc:creator><![CDATA[astrosofista]]></dc:creator><pubDate>Tue, 28 Dec 2021 23:42:46 GMT</pubDate></item><item><title><![CDATA[Reply to HTML - Only save the heading and paragraphs text, remove images and links on Wed, 29 Dec 2021 11:42:00 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/daniel-norin" aria-label="Profile: daniel-norin">@<bdi>daniel-norin</bdi></a> and <strong>All</strong>,</p>
<p dir="auto">This is a <strong>first</strong> version, which will <strong>surely</strong> require <strong>modifications</strong> later on !</p>
<hr />
<p dir="auto">Firstly, we <strong>delete</strong> some <strong>unwanted</strong> parts in some lines that we wxant to <strong>keep</strong> :</p>
<ul>
<li>
<p dir="auto">Open the <strong>Replace</strong> dialog ( <strong><code>Ctrl + H</code></strong> )</p>
</li>
<li>
<p dir="auto">SEARCH <strong><code>(?s-i)&lt;a .+?&gt;|&lt;/a&gt;|&lt;/?em&gt;</code></strong></p>
</li>
<li>
<p dir="auto">REPLACE <strong><code>Leave EMPTY</code></strong></p>
</li>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option, <strong>only</strong></p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> <strong>search</strong> mode</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Replace All</code></strong> button</p>
</li>
<li>
<p dir="auto">Close the dialog ( <strong><code>Esc</code></strong> )</p>
</li>
</ul>
<hr />
<p dir="auto">Secondly, we <strong>mark</strong> some text which will be copied in the <strong>clipboard</strong> :</p>
<ul>
<li>Open the <strong>Mark</strong> dialog ( <strong><code>Ctrl + M</code></strong> )</li>
</ul>
<p dir="auto">SEARCH <strong><code>(?s-i)&lt;h([1-6]).+&gt;\K.+?(?=&lt;/h\1&gt;)|&lt;p&gt;\K\w.+?(?=&lt;/p&gt;)</code></strong></p>
<ul>
<li>
<p dir="auto">Tick the <strong><code>Wrap around</code></strong> option, <strong>only</strong></p>
</li>
<li>
<p dir="auto">Select the <strong><code>Regular expression</code></strong> <strong>search</strong> mode</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Mark All</code></strong> button</p>
</li>
<li>
<p dir="auto">Click on the <strong><code>Copy Marked Text</code></strong> button</p>
</li>
<li>
<p dir="auto">Close the dialog ( <strong><code>Esc</code></strong> )</p>
</li>
</ul>
<hr />
<p dir="auto">Now, select <strong>all</strong> the text with <strong><code>Ctrl + A</code></strong> and  hit the <strong><code>Ctrl + V</code></strong> shortcut</p>
<p dir="auto">The <strong>expected</strong> <em>cleaned</em> text should appear :</p>
<pre><code class="language-z">Earlier this month we unveiled the nominees for the Ninth Annual Sprudgie Awards. Voting is now open across a dozen categories, honoring the very best in coffee. Voting ends December 31st, 2017 at 11:59 PM.
In this feature, we’re spotlighting the 2017 nominees for Best Coffee Film/Video, one of the tightest races in all Sprudgie Award categories. Past winners for Best Coffee Film/Video include the Gilmore Girls: A Year In The Life, Barista, Dunkin Love, Hey Girl Guide To Coffeeing, Comedians in Cars Getting Coffee, and "Kenya" (Stumptown Coffee Roasters).
Let’s meet this year’s nominees!
The Young and the Spoonless by Cafe Imports
I Yelp By The Way by Dapper &amp; Wise
</code></pre>
<p dir="auto">Best Regards,</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72407</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72407</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Wed, 29 Dec 2021 11:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to HTML - Only save the heading and paragraphs text, remove images and links on Tue, 28 Dec 2021 13:03:01 GMT]]></title><description><![CDATA[<p dir="auto">Hello, <a class="plugin-mentions-user plugin-mentions-a" href="/user/daniel-norin" aria-label="Profile: daniel-norin">@<bdi>daniel-norin</bdi></a>,</p>
<p dir="auto">Sorry, but I have to go <strong>away</strong> for at least 2 hours !</p>
<p dir="auto">As soon as possible, I will be able to give you a <strong>first</strong> version !</p>
<p dir="auto">Best Regards</p>
<p dir="auto">guy038</p>
]]></description><link>https://community.notepad-plus-plus.org/post/72405</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/72405</guid><dc:creator><![CDATA[guy038]]></dc:creator><pubDate>Tue, 28 Dec 2021 13:03:01 GMT</pubDate></item></channel></rss>