From 9df91bfff5746b39884f12dcd1e4fe56fcfd3e63 Mon Sep 17 00:00:00 2001
From: lucidiot
Date: Sat, 23 Jan 2021 22:44:40 +0000
Subject: [PATCH] Post about disable-output-escaping
---
feed.xml | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/feed.xml b/feed.xml
index a05dd1f..25827ed 100644
--- a/feed.xml
+++ b/feed.xml
@@ -120,5 +120,18 @@
With this change, instead of Yahoo, I can quickly subscribe to anyone's RSS feeds faster than ever. This will definitely not help my backlog of 2600+ articles…
]]>
+
+ -
+ disable-output-escaping
+ Sat, 23 Jan 2021 21:40:04 +0000
+ d-o-e
+ Meta
+ XSL
+ While writing the previous post about TinyTinyRSS in Pale Moon, I tried to fix an issue I still had with my XSLT: To make HTML tags in <description> blocks work, I had to break an important part of the RSS specification and add tags directly without escaping them. XSLT stylesheets would decode entities or CDATA blocks, and do not provide a function to selectively re-parse XML tags, so I felt I was stuck. I then found out that this bit of code could get me to output the content of a description tag without getting HTML entities, so getting raw HTML as I want it without causing bugs with Pale Moon's RSS preview or bad RSS validator warnings:
+ <xsl:value-of select="description" disable-output-escaping="yes" />
+ disable-output-escaping
is optional according to the W3C specification since version 1. libxslt, Chromium and Internet Explorer do support it, but Firefox chose not to, and a Bugzilla ticket for it will celebrate its 20th birthday this year. They do say themselves that this causes issues for RSS support, so I chose to just not care about it. If you are a Firefox user and are seeing raw, unparsed HTML tags in there, I can only suggest using another browser, or just subscribing to this feed and reading this in its home, a RSS aggregator.
+ ]]>
+