<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/rss/rss.xsl"?>
<rss version="2.0">
  <how_styling_rss_works style="display: none;" xml:lang="en-us" type="html">
# Styling RSS w XLS notes

XML files can include both xml-stylesheets (XSLT) and normal stylesheets (CSS).
XSLT files are transformations, and allow you to process an XML doc into an HTML doc (among other things).
In this case, it doesn't matter if we import the CSS here or via /rss/rss.xsl -- it gets applied either way.
The XSLT will output HTML for us, but the HTML content from the RSS feed (i.e., the bodies of posts) must be unescaped.
There's a special attribute (`disable-output-escaping`) which will do that.
However, we need to run some JS, too, because not every browser supports decoding html like that.

* firefox does not seem to support `disable-output-escaping="yes"`, so it requires the JS in rss.js
* chrome does support `disable-output-escaping="yes"`, so don't remove those attrs

The JS works by testing `#cometestme`, and then (if needed) looping over elements matching `[name=decodable]` and basically `el.innerHTML = el.textContent`.

Note, `disable-output-escaping="yes"` is a legacy feature from XSLT v1.0; the new way to do it is with character maps.
When I tried those, they didn't seem to work in firefox (which is when I tried the original JS).
IDK if chrome support character maps, but if it does, then that is a good update to implement. TODO I guess.

</how_styling_rss_works>
  <channel>
    <title>Open Discussion</title>
    <description type="html" xml:lang="en-us">&lt;p&gt;You can post whatever you like here. Also, anyone else can post whatever they like, too.&lt;/p&gt;

&lt;p&gt;This section is inspired by &lt;a href="https://curi.us"&gt;curi.us&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;You will never be punished, censored or moderated based on your ideas. You can disagree with whatever you want, advocate whatever you want, and even flame people. The most anyone will do to you is &lt;em&gt;write words back&lt;/em&gt; or stop listening. Messages are neutral ground where everyone is equal; there are no special privileges.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Source: &lt;a href="https://curi.us/2202-how-discussion-works"&gt;https://curi.us/2202-how-discussion-works&lt;/a&gt;&lt;/p&gt;
</description>
    <categoryTags>
    </categoryTags>
    <link>https://forum.xk.io/n/88</link>
    <item>
      <title>Disabled creating threads in open discussion b/c spam.</title>
      <description type="html" xml:lang="en-us">
&lt;div class="bg-white even:bg-white w-full max-w-full"&gt;
    &lt;div&gt;
      &lt;div class="py-2 "&gt;
          &lt;div class="content markdown p-4 bg-c-content-body-bg rounded"&gt;
            &lt;p&gt;I&amp;#39;ve had some spam (only 3 topics) since migrating the site. I&amp;#39;ve locked-down thread creation in open discussion until I implement some anti-spam measures.&lt;/p&gt;

          &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

</description>
      <categoryTags>
        <item>
          <text>notice</text>
        </item>
      </categoryTags>
      <pubDate>Wed, 08 Sep 2021 07:41:43 +0000</pubDate>
      <link>https://forum.xk.io/n/10008</link>
      <guid>https://forum.xk.io/n/10008</guid>
      <author>u/max</author>
      <authorLink>/a/1</authorLink>
      <nodeId>10008</nodeId>
    </item>
    <item>
      <title>Test here preferably</title>
      <description type="html" xml:lang="en-us">
&lt;div class="bg-white even:bg-white w-full max-w-full"&gt;
    &lt;div&gt;
      &lt;div class="py-2 "&gt;
          &lt;div class="content markdown p-4 bg-c-content-body-bg rounded"&gt;
            &lt;p&gt;A post for testing&lt;/p&gt;

          &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;

</description>
      <categoryTags>
        <item>
          <text>test</text>
        </item>
      </categoryTags>
      <pubDate>Sat, 28 Aug 2021 08:22:54 +0000</pubDate>
      <link>https://forum.xk.io/n/10001</link>
      <guid>https://forum.xk.io/n/10001</guid>
      <author>u/max-test</author>
      <authorLink>/a/2</authorLink>
      <nodeId>10001</nodeId>
    </item>
  </channel>
</rss>
